home *** CD-ROM | disk | FTP | other *** search
- Return-Path: LISTSERV@DARTCMS1.DARTMOUTH.EDU
- Received: from dartcms1.dartmouth.edu by lks.lks.csi.com (5.65/6.930123)
- with SMTP id AA16365; Thu, 1 Sep 94 14:20:20 -0500
- Message-Id: <9409011920.AA16365@lks.lks.csi.com>
- Received: from DARTCMS1.DARTMOUTH.EDU by DARTCMS1.DARTMOUTH.EDU
- (IBM VM SMTP V2R2) with BSMTP id 2048; Thu, 01 Sep 94 15:21:25 EDT
- Received: from DARTCMS1.DARTMOUTH.EDU (NJE origin LISTSERV@DARTCMS1) by
- DARTCMS1.DARTMOUTH.EDU (LMail V1.2a/1.8a) with BSMTP id 2025; Thu,
- 1 Sep 1994 15:20:58 -0400
- Date: Thu, 1 Sep 1994 15:20:25 -0400
- From: BITNET list server at DARTCMS1 (1.8a)
- <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
- Subject: File: "MACSCRPT LOG9408"
- To: F Terry <pfterry@lks.csi.com>
-
- =========================================================================
- Date: Sun, 31 Jul 1994 22:59:30 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: MR Mac - Michael Robertson <robertso@SDSC.EDU>
- Subject: Anyone know of any good "timing" examples?
-
- Rather than reinvent the wheel, I'm wondering if anyone out there knows of
- any AppleScript code samples that deal with timed execution. By that I mean
- a script that will accept some sort of scheduling input and create an event
- which will execute at a certain date and time. An example would be to
- "ping" a server at a certain time. I would like an example that was
- dynamic. i.e. It received user input and then would execute at a later
- time. Any help greatly appreciated and go ahead and send the scripts to me
- via e-mail if you got any laying around! :)
-
- Thanks in advance!
- =========================================================================
- Date: Sun, 31 Jul 1994 19:05:44 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: error number -128 is not quitting the script
-
- Hi,
- I'm still try to get scripts to exit in the appropriate places. Do any
- of you know why error number -128 does not quit the script in the
- following example:
-
- Process(theFile)
-
- on Process(theFile)
- try
- PerformAction(theFile)
- on error
- activate
- display dialog "A fatal error occured!"
- error number -128 -- This is supposed to exit the script immedia
- end try
- end Process
-
-
- Are there any work-arounds to make the script quit like it is supposed to?
-
- Thanks in advance,
- peter
- =========================================================================
- Date: Sun, 31 Jul 1994 21:32:46 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: File Exists?
- In-Reply-To: <9408010704.AA17189@uhunix.uhcc.Hawaii.Edu>
-
- On Sun, 31 Jul 1994, Mark Elpers wrote:
-
- > Is there an AppleScript Addition that allows me to check is a file exists
- > at a specified path? I do not have the Scriptable Finder (yet...)
-
- The file commands scripting addition that comes with AppleScript does
- such a thing:
-
- if (list folder ((path to system folder as string) & "FolderOfInterest"))
- contains TheFileImLookingFor then
- display dialog "I'm so happy it's there!"
- end if
-
- -pH
- =========================================================================
- Date: Sun, 31 Jul 1994 21:27:16 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Automatically saving scripts as run-only?
- In-Reply-To: <9408010703.AA17120@uhunix.uhcc.Hawaii.Edu>
-
- On Sun, 31 Jul 1994, David Ray wrote:
-
- > >Do any of you have a drag-n-drop utility to automatically save other
- > >scripts as run-only?
- >
- > Nope, but I have another suggestion - if you invoke the scripts from Script
- > Menu or OSA Menu instead of Other Menu, you can run the scripts as compiled
- > scripts rather than stand-alone applications. The scripts will use the heap
- > space of whatever the front application is.
-
- Actually the latest version of OtherMenu (1.4.1) will run compiled
- AppleScripts. However, I need my scripts to be applications for 2 reasons:
- 1. Some of them have to have drag-n-drop capability
- 2. Some of the scripts need to be able to figure out their own name.
- Now if their was a way to get the name of a (non-application)
- script while it was running, I could let OtherMenu run some of them. Do
- scripts have a name property?
-
- -peter
- =========================================================================
- Date: Mon, 1 Aug 1994 01:03:25 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chuck McKinnon <mckinnon@KAIWAN.COM>
- Subject: AS & Microphone II 4.0.2
-
- When I run this (from Script Editor)
-
- tell application "MicroPhoneT II"
- activate
- Do Script "Do Script * 'Setup'" ['Setup' is a MP II internal script.]
- end tell
-
- I get an error saying script not found. I've also tryed the module approach --
- i.e. - Do Script "Do Script * 'Setup','<settings name>"
- same result.
-
- So the ? is what is wrong? Is it the syntax? or the command?
- Any help is mucho appreciated.
-
- TIA
-
-
- Chuck
-
- /*----------------------------------------------------------------------------*\
- \ Chuck McKinnon | ANAHEIM, CA | CSU Fullerton /
- / | | \
- \ mckinnon@kiawan.com | -- BE HAPPY -- | a|k|a /
- / CI$ 74260,1110 | | \
- \ | The Mouse doesn't | Cal State /
- / Give me the finger | like it when you're | Construction Zone \
- \ for PGP Public Key | not happy | ^^^^^^^^^^^^^^^^^ /
- / | | \
- \*----------------------------------------------------------------------------*/
- =========================================================================
- Date: Mon, 1 Aug 1994 15:14:22 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith =?iso-8859-1?Q?Kert=E9sz?= SUCHARD <suchard@CNAM.FR>
- Subject: Re: MacWorld, Boston
-
- >Yes. Call Random House at 1-800-733-3000 and order the Complete AppleScrip=
- t
-
- Is there an address to write to? thanks.
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kert=E9sz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simplicit=E9, c'est le fruit d'un long effort"
- =========================================================================
- Date: Mon, 1 Aug 1994 11:03:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mitch Temoche <temoche@USUHSB.USUHS.MIL>
- Subject: Re> Fwd> AS & Microphone II 4.0.2
-
- ---- begin included message ----
- When I run this (from Script Editor)
-
- tell application "MicroPhoneT II"
- activate
- Do Script "Do Script * 'Setup'" ['Setup' is a MP II internal script.]
- end tell
-
- I get an error saying script not found. I've also tryed the module approach
- --
- i.e. - Do Script "Do Script * 'Setup','<settings name>"
- same result.
-
- So the ? is what is wrong? Is it the syntax? or the command?
- Any help is mucho appreciated.
-
- TIA
-
-
- Chuck
-
- ---- end included message --------
-
- tell application "MicroPhoneT II"
- activate
- -- change this line "Do Script "Do Script * 'Setup'"
- -- try this
- Do Script MicroPhone Script "Setup"
- end tell
- =========================================================================
- Date: Mon, 1 Aug 1994 11:16:38 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: MacWorld, Boston
-
- >Is there an address to write to? (Random House)
-
- Random House Inc.
- 201 East 50th Street
- New York, NY 10022
-
- Other phone numbers you can try for international orders are:
-
- voice: 212-572-6106
- fax: 212-572-6045
-
- Danny
- =========================================================================
- Date: Mon, 1 Aug 1994 08:27:32 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: File Exists?
-
- At 21:32 7/31/94 -1000, Pete Hinely wrote:
- >On Sun, 31 Jul 1994, Mark Elpers wrote:
- >
- >> Is there an AppleScript Addition that allows me to check is a file exists
- >> at a specified path? I do not have the Scriptable Finder (yet...)
- >
- >The file commands scripting addition that comes with AppleScript does
- >such a thing:
- >
- >if (list folder ((path to system folder as string) & "FolderOfInterest"))
- > contains TheFileImLookingFor then
- > display dialog "I'm so happy it's there!"
- >end if
-
- The only problem with this solution is that it assumes that the folder
- containing the path exists.
-
- Example: I'm trying to get some files out of a folder. I'm not sure this
- folder exists, but I'm not sure the folder containing it exists either. If
- you don't have Disk:Folder1:Folder2
- list folder("Disk:Folder1:Folder2") will generate an error.
-
- So I had to write my own routine:
- on FileExists(path)
- set AppleScript's text item delimiters to {":"}
- set Container to ""
- if (list disks) does not contain word 1 of path then
- set AppleScript's text item delimiters to {""}
- return 0
- end if
- repeat with x from 2 to number of words in path
- log x
- set Container to (Container & word (x - 1) of path & ":")
- log Container
- if ((list folder (Container as text)) does not contain word
- x of path) then
- set AppleScript's text item delimiters to {""}
- return 0
- end if
- end repeat
- set AppleScript's text item delimiters to {""}
- return 1
- end FileExists
-
- Seems to work for me ...
- =========================================================================
- Date: Mon, 1 Aug 1994 10:19:26 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Problem with Text Field Delimiters
-
- Earlier today, I posted a subroutine that would find if a file existed.
- This is a fragment of that subroutine:
- ---
- on FileExists(path)
- set AppleScript's text item delimiters to {":"}
- set Container to ""
- log (item 1 of path)
- if (list disks) does not contain word 1 of path then
- set AppleScript's text item delimiters to {""}
- return false
- end if
- ---
-
- I've found an interesting problem: If the disk name is not one word (Apple
- allows spaces, of course), this fails because it tries to see if (list
- disks) contains (word 1 of path).
-
- I originally assumed that word 1, word 2, etc would be calculated based on
- the new text item delimiters -- the ':', in which case word 1 would be
- everything up to the first ':', but apparently AS is not doing that. Am I
- doing anything wrong?
-
- -roy
- =========================================================================
- Date: Mon, 1 Aug 1994 19:31:15 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: How does AS know which osax to use?
-
- Howdy,
-
- how does AS know which osax to choose from when asked to perform a command?
- For example, Apple's System Object Suite, The Sweet Suite (by Gerry Davis)
- and the Script Tools Suite (by Mark Alldritt) all define a 'choose folder'
- command ***with the same syntax***. If one has all of these in the
- Scripting Additions folder, how does AS decide which to use?
-
- Thanks.
-
-
- Wagner Luiz Truppel
- WLT@MERCURIO.UC.PT
- =========================================================================
- Date: Mon, 1 Aug 1994 10:49:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: How does AS know which osax to use?
-
- >Howdy,
- >
- >how does AS know which osax to choose from when asked to perform a command?
- >For example, Apple's System Object Suite, The Sweet Suite (by Gerry Davis)
- >and the Script Tools Suite (by Mark Alldritt) all define a 'choose folder'
- >command ***with the same syntax***. If one has all of these in the
- >Scripting Additions folder, how does AS decide which to use?
-
- Jon Pugh no doubt knows, but...most likely, either the first or last osax
- encountered which uses a given syntax for a particular event class/event id
- pair will be chosen. So long as they do the same thing, it really doesn't
- matter.
-
- This issue has led me to do three things:
-
- 1. Keep the Scripting Additions folder as empty as possible. (For
- example, I have the GTQ library...I have only about two of the pieces
- installed at the moment.)
-
- 2. Not add to the supply.
-
- 3. Use Finder labels to mark the non-Apple Additions I do have, so I can
- find them quickly and rip them out.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 1 Aug 1994 14:12:06 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Problem with Text Field Delimiters
- In-Reply-To: <no.id> from "Roy S. Rapoport" at Aug 1, 94 10:19:26 am
-
- --Roy S. Rapoport wrote:
- >
- >I've found an interesting problem: If the disk name is not one word (Apple
- >allows spaces, of course), this fails because it tries to see if (list
- >disks) contains (word 1 of path).
-
- It's important to remember that a word in AppleScript is always
- bounded by white space, regardless of what the Text Item Delimiters are
- set to.
-
- >I originally assumed that word 1, word 2, etc would be calculated based on
- >the new text item delimiters -- the ':', in which case word 1 would be
- >everything up to the first ':', but apparently AS is not doing that. Am I
- >doing anything wrong?
-
- Try changing the "word 1" in your script to "text item 1". This
- should fix your pathname parsing problems.
-
- -Hades
- =========================================================================
- Date: Mon, 1 Aug 1994 11:12:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matt Stevens <matt@TRIBE.TRIBE.COM>
- Subject: Re: Problem with Text Field Delimiters
-
- >I've found an interesting problem: If the disk name is not one word (Apple
- >allows spaces, of course), this fails because it tries to see if (list
- >disks) contains (word 1 of path).
- >
- >I originally assumed that word 1, word 2, etc would be calculated based on
- >the new text item delimiters -- the ':', in which case word 1 would be
- >everything up to the first ':', but apparently AS is not doing that. Am I
- >doing anything wrong?
- >
- >-roy
-
- I recently ran into this same problem; by specifying that you want word 1
- of text item a, instead of word 1 of a it seems to work. The key is
- specifying explicitly that it's a text item, otherwise it seems AS doesn't
- always treat it as such in regards to delimiters.
- --
- matt
- =========================================================================
- Date: Mon, 1 Aug 1994 13:11:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: DocServer for Frontier Runtime
-
- John Baxter has dropped a copy of the DocServer for Frontier Runtime on gaea
- (thanks, John). You'll find it in
-
- ftp://gaea.kgs.ukans.edu/frontier/FromUserland/DocServer_for_Runtime.sit.hqx
-
- His description follows:
-
- DocServer is on-line documentation browser for Frontier verbs. This package
- provides documentation for all verbs supported by Frontier Runtime 3.0.
- It's especially useful if you want to understand how the scripts in the
- Sample Scripts package work..
-
- How To Install
- -------------
-
- With Frontier Runtime running, double-click on DocServer.Runtime. Click OK
- in any confirmation dialogs that appear. The verbs and shared menu for
- DocServer will be installed into the Runtime database. Launch DocServer to
- browse thru the verb documentation. Use the Jump To Verb command to view a
- specific verb, or use the Index menu to browse a verb category.
-
- UserLand Software
- December 1993
- =========================================================================
- Date: Mon, 1 Aug 1994 20:20:48 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: Request for osaxen
-
- Howdy,
-
- I'm writing an aplet that requires two special dialog boxes and, not having
- the expertise required to create the necessary osaxen, I decided to turn to
- the great programmers out there in the net for some help.
-
- Here's what I need:
-
- - a choose folder dialog box that has an additional button, for creating a
- new folder. In other words, the user can select an already existing folder
- or create a brand new right from within the dialog, without having to
- dismiss it, go to the Finder, create the new folder, and then get back to
- the aplet. Notice that invisible folders should not be listed.
-
- - a choose multiple files dialog box (ie, with "Add", "Add All", "Remove"
- and "Remove All" buttons) that allows the user to select folders as well as
- files - a "choose multiple items" dialog would be a more appropriate
- name... The analogous "choose one item" dbox is also an interesting
- addition, and I could use that one instead (on a loop), but I'd rather use
- the "multiple items" one. Finally, either "choose item" dbox should have
- (according to an option set by the scripter) a check box for selecting
- aliases instead of their targets. Another option set by the scripter that
- would be nice to have is one to prevent invisible files and/or folders from
- being listed.
-
- I must say that I cannot pay any significant amount of money for the
- results of these requests, and just hope someone with the required
- expertise and some free time will be willing to do it for the challenge,
- for the benefit of other scripters (in the best tradition of shareware and
- freeware) and for a free copy of my aplet when it's finished.
-
- Thank you very much.
-
-
- Wagner Luiz Truppel
- WLT@MERCURIO.UC.PT
- =========================================================================
- Date: Mon, 1 Aug 1994 14:30:30 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Problem with Text Field Delimiters
- In-Reply-To: <no.id> from "Matt Stevens" at Aug 1, 94 11:12:36 am
-
- --Matt Stevens wrote:
- >
- >I recently ran into this same problem; by specifying that you want word 1
- >of text item a, instead of word 1 of a it seems to work. The key is
- >specifying explicitly that it's a text item, otherwise it seems AS doesn't
- >always treat it as such in regards to delimiters.
-
- This can be a bit cumbersome. Since he wants an entire portion of a
- pathname that been separated by ":" characters he really needs to use
- "text item 1" or "last text item" to get the portions. Words in
- AppleScript are always bounded by whitespace.
-
- -Hades
- =========================================================================
- Date: Mon, 1 Aug 1994 12:13:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: I learned something new today
-
- At 1:17 7/28/94 -0800, Jon Pugh wrote:
-
- >In the Script Editor 1.1 there is the nifty event log window. Hopefully
- >everyone has played with this. The tip is that AppleScript knows 3
- >commands for dealing with this. All of them only do things when the window
- >is showing, so they can be left in finished scripts. The first is "start
- >log", the second is "stop log" and the last is simply "log". (All kids
- >love Log!)
-
- Hmm. This is not my experience.
-
- Note the following script:
- ---
- start log
- copy 2 + 5 to t
- set t to t + 3
- log t
- display dialog t
- stop log
- ---
- This works great if I run it from within the script editor, but if I save
- it as an application and double-click on it, I get '<<script>> doesn't
- understand the start log message'.
- =========================================================================
- Date: Mon, 1 Aug 1994 13:07:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Remote machine AppleScripting
-
- One thing that I do whenever I need to deal with getting at information on a
- remote machine, and it's not in an app which supports remote Apple events, is
- the following:
-
- Script applications, when running, do accept AppleScript commands across the
- network. So, let's say you wanted to know the name of every item on the top
- level of someone's hard drive (who was running the Scriptable Finder,
- conveniently enough)
- Put a script application on their machine, and make a handler like this:
- on getAllNames()
- get the name of every item on startup disk of application "Finder"
- end getAllNames
-
- Then from another machine across the network, write the following script:
- tell app "Tester" of machine "Foo"
- getAllNames()
- end tell
-
- (Assume Tester is the name of the script application churning away on the other
- machine).
-
- When you send it the getAllNames() command, it will cause the Tester script
- application to get the name of every item. This command will be treated like a
- local command because the script itself is on the local machine. The result
- that it gets
- will be returned across the network to your script.
-
- This is a somewhat brain-dead example, but it shows that you can use script
- applications to receive remote events and execute commands on the local
- machine. This is a handy way (as handy as anything that uses Program Linking,
- anyway)
- to get at apps that don't allow remote events.
-
- BTW, in the second edition of the Tao book (this is not a shameless plug), we
- have a script which will allow you to run any script on some other machine
- using this technique. For some reason, my roommates won't let me test it on our
- house's network!
-
- The trick is to use the "run script" command on the target machine. run script
- will take any text and run it as if it were a script. So, you type out some
- text in Scriptable Text Editor, and send that to the remote machine, which has
- a script app with the
- following command:
-
- on runScript (textToUse)
- run script textToUse
- end runScript
-
- Before they firmly shut down Program Linking, I had dialogs appearing on my
- roommate's screens (which I was able to get the results of, BTW), and all sorts
- of other neat things!
-
- Hope this helps,
- Derrick
- =========================================================================
- Date: Mon, 1 Aug 1994 13:19:42 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Anyone know of any good "timing" examples?
- In-Reply-To: <199408010621.XAA20536@mail.netcom.com>
-
- On Sun, 31 Jul 1994, MR Mac - Michael Robertson wrote:
-
- > Rather than reinvent the wheel, I'm wondering if anyone out there knows of
- > any AppleScript code samples that deal with timed execution. By that I mean
- > a script that will accept some sort of scheduling input and create an event
- > which will execute at a certain date and time. An example would be to
- > "ping" a server at a certain time. I would like an example that was
- > dynamic. i.e. It received user input and then would execute at a later
- > time. Any help greatly appreciated and go ahead and send the scripts to me
- > via e-mail if you got any laying around! :)
- >
- > Thanks in advance!
-
- >
-
- I don't know if this will help, but I have a script which executes every
- hour and says the time (using Plaintalk scripting additions). Here's how
- I set it up (I'm not looking at my Mac at the moment, so I can't
- guarantee that this will work):
-
- on idle
- if the time string of (current date) contains ":00:" then tell me to
- speakTime()
- end idle
-
- You could, obviously, put any time to watch for in there. Handling the
- user interface might be tricky, but it depends on how elaborate you wish
- to make it.
-
- You might have the following script:
- display dialog "Ping server at what time?" default answer "8:00 AM"
- copy the text returned of the result to pingTime
-
- on idle
- global pingTime
- if the time string of (current date) contains (word 1 of pingTime) and
- the time string of (current date) contains word 2 of pingTime then tell
- me to pingServer()
- -- the time string (if that's what it's called) comes back as 8:00:00 AM
- -- I can't remember if AS strings can be broken down into words. I
- think they can, but I could be wrong. That's what I get for not working
- on Macs anymore.
-
- end idle
-
- Anyway, it's just an idea. Hope it helps,
-
- Derrick
- =========================================================================
- Date: Mon, 1 Aug 1994 13:20:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: HyperCard Droplets?
- In-Reply-To: Peter Fleck - SMM's message of Sun,
- 31 Jul 1994 19:05:32 CDT <9408010009.AA05521@quilty.Stanford.EDU>
-
- Greetings,
-
- Peter Fleck was kind enough to type in an example of a HyperCard stack as a
- droplet.
-
- I took the example of mutated it for my purposes and ran into one area of
- problem.
-
- My stack script is being interpreted as AppleScript (that's not the problem).
- The script complains about the following line:
-
- request appleEvent data
-
- The comment says this invocation should return the file pathname. Which given
- the context makes perfect sense, however there must be some syntactic
- difference to make it work.
-
- Thanks for reading,
-
- Michael
- =========================================================================
- Date: Mon, 1 Aug 1994 13:21:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: error number -128 is not quitting the script
- In-Reply-To: <199408010700.AAA23392@mail.netcom.com>
-
- Regarding trying to quit the script when Cancel is pressed...
-
- Doesn't AppleScript deal with this for you? If you don't trap the error,
- I thought Cancel automatically terminated the script. Maybe the same
- doesn't apply in handlers...?
-
- Derrick
- =========================================================================
- Date: Mon, 1 Aug 1994 17:26:48 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mitch Temoche <temoche@USUHSB.USUHS.MIL>
- Subject: Set working directory
-
- Does anyone know how to set an application's working directory in AppleScript
- either via a script or an addition?
- =========================================================================
- Date: Mon, 1 Aug 1994 15:02:14 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Global variables
-
- Greetings,
-
- I have a new definition for what fun is not: HyperCard & AppleScripting.
-
- With that caveat aside, should global variables declared in a stack script
- (interpreted as an AppleScript) be visible to a background script (also
- interpreted as an AppleScript)?
-
- Take care!
-
- Michael
- =========================================================================
- Date: Mon, 1 Aug 1994 15:26:36 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Renaming files
-
- Greetings,
-
- I am more than slightly embarrassed to ask this question, but deadlines know no
- modesty:
-
- How does one script the renaming of a file?
-
- I liked at all of my scraps of information, Finder Lib, Toolkit, etc. and
- nothing.
-
- The answer must be straight forward, I'm just to bent to see.
-
- Thanks,
-
- Michael
- =========================================================================
- Date: Mon, 1 Aug 1994 16:03:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: Renaming files
-
- At 15:26 8/1/94 -0700, Mike Shaff wrote:
- >How does one script the renaming of a file?
-
- Wow, a question I know the answer to! :)
-
- Use Finder Liaison 1.1 (unless you have Scriptable Finder. I don't have
- SF, but it seems like it can pretty much do anything you want it to do,
- other than prepare coffee (you need the coffee OSA for that)) ... code
- fragment:
- ---
- tell application "Finder Liaison 1.1"
- Set Name of Folder BSIFolder in Disk GPS2 To BackUPName
- quit
- end tell
- --
-
- You get the point ...
-
- -roy
- =========================================================================
- Date: Mon, 1 Aug 1994 19:14:28 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Boris Levitin <boris@WORLD.STD.COM>
- Subject: Re: Anyone know of any good "timing" examples?
-
- MR Mac - Michael Robertson <robertso@SDSC.EDU> writes:
-
- ::::
- Rather than reinvent the wheel, I'm wondering if anyone out there knows of
- any AppleScript code samples that deal with timed execution. By that I mean
- a script that will accept some sort of scheduling input and create an event
- which will execute at a certain date and time. An example would be to
- "ping" a server at a certain time. I would like an example that was
- dynamic. i.e. It received user input and then would execute at a later
- time. Any help greatly appreciated and go ahead and send the scripts to me
- via e-mail if you got any laying around! :)
- ::::
-
- There is an example of a simple timed-execution script in Danny Goodman's
- Complete AppleScript Handbook. The downside is that the applet has to stay
- running. There is a dearth of meaningfully scriptable scheduling software...
- I'm trying to talk to Nisus, which purchased Essentil Software's Easy Alarms,
- about extending its AS support to allow applets to set Easy Alarms reminders
- that play other applets. Perhaps owners of Now Alarms would care to comment...
-
- Boris Levitin WGBH Public Broadcasting, Boston
- boris@world.std.com * boris_levitin@wgbh.org
- I produced this message and am solely responsible for its content
- =========================================================================
- Date: Mon, 1 Aug 1994 19:18:52 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Boris Levitin <boris@WORLD.STD.COM>
- Subject: Re: error number -128 is not quitting the script
-
- Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
-
- >Are there any work-arounds to make the script quit like it is supposed to?
-
- quit or quit me don't work for you?
-
- Boris Levitin WGBH Public Broadcasting, Boston
- boris@world.std.com * boris_levitin@wgbh.org
- I produced this message and am solely responsible for its content
- =========================================================================
- Date: Mon, 1 Aug 1994 16:20:55 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier records & lists
-
- >I have question regarding accessing a list of records in Frontier.
- >When scripting Quark, you can do something like
- >
- > get(page[1].picturebox[color == "foo"].name)
- >
- >and you will be returned a list of the names of all the picture boxes one
- >page 1 that have the color "foo".
-
- That is achieved through a collaboration (on one of two levels) between
- (speaking carelessly) the Apple Event Manager and the Application.
- [Really, it's a part of the AE Manager which appears as a separate
- library.]. I suspect XPress uses the faster level (in which the
- application somehow marks elements for further consideration) rather than
- the slower level (in which the Manager has to ask for individual
- comparisons for each and every element to be tested).
-
- I might add that even the simpler level can be quite complex in practice:
- you need to write a function which AE Manager can call to count the number
- of any (valid) element in any container, and another function which AE
- Manager can call to do any valid comparison between two objects or between
- an object and some raw data which might have been made into an object but
- wasn't).
-
-
- >Is there any way to do something like this with a very large list of records
- >in Frontier? I have created a type of index for 2500 illustrations (stock
- >number, folder name, and file name), and want to be able to get all the file
- >names that pertain to a certain item number. The client for whose jobs I
- >created these scripts is organizationally challenged and has several
- >duplicate stock numbers for completely different products.
- >
- >I want to be able to find all the records that contain the same value in one
- >particular field without looping through the entire list and checking the
- >value of that field. For example I would like to be able to do something like
- >
- >
- > foo = a very large list of records
- > bar = foo['fld1' == "something"]
- >
- >and have bar be a list of either the records themselves or even the index
- >values of the list elements that match.
-
- Frontier doesn't do this...for a one-shot job, I would guess that the
- better approach would be to write a looping script, verify it on small
- sample data (but you knew that), then turn it loose over the weekend on
- your fastest available machine. [You'd have to do the same in
- AppleScript.]
-
- It would be possible to design and write a helper application which
- collaborates in the fast way with the AE Manager to do the job for you.
- That could be done in a rather general way (and might be useful, but almost
- certainly wouldn't repay development costs). Or...a Frontier UCMD could be
- written to do the specific job at hand (or some of the more general job).
-
- But...either of those would need, as part of testing, a comparison of the
- results against the weekend run I mentioned earlier (overnight might well
- be enough).
-
- >
- >+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
- >| Everything is very very deeply \
- >| I N T E R T W I N G L E D \
- >| dave@sage.uucp/sage!dave@noc.tor.hookup.net \
- >+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
-
- Isn't it, though.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 1 Aug 1994 16:21:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re(2): Frontier records & lists
-
- >Doug Baron wrote:
- >
- >>This should work fine, memory permitting. Generally, the list you get back
- >>will contains object specifiers for the indicated items, but if you ask for
- >>the items' ids, you should get back a list of ids. For example:
- >>
- >> foobar = foo ['fld1' == "something"].id
- >>
- >>This assumes that "foo"s _have_ ids in the first place.
- >
- >Am I missing something? It seems to me that this kind of thing does not work
- >with lists of records in Frontier, but does work with objects in Quark. Allow
- >me to illustrate:
- >
- >local
- > foo, bar
- >foo = {{'fld1':"rec 1 fld 1 data",'fld2':"rec 1 fld 2 data"},{'fld1':"rec 2
- >fld 1 data",'fld2':"rec 2 fld 2 data"}}
- >
- >foo is a list that contains 2 elements. Each element is a record that
- >contains 2 fields, named 'fld1' and 'fld2'.
- >
- >The following command
- >
- > bar = foo['fld1' == "rec 2 fld 1 data"]
- >
- >yields the error "Array index is out of range. The list "foo" doesn't have an
- >item #0"
- >
- >Shouldn't the above assignment work?
-
- Conceptually, it should. In the implementation, 'fld1' == "rec 2 fld 1
- data" is evaluated as it appears there: 'fld1' is coerced to a string, and
- compared with the other string...they aren't (obviously) equal, so the
- result is false. Then you have
- bar = foo[false]
-
- which looks like indexing, so the false is coerced to an integer (0), and
- foo[0] by definition does not exist.
-
- If you happened to express a test which came out true, you would assign the
- first element of foo to bar, silently. That seems worse.
- >
- >Or what about the following potentially quite useful assignments...
- >
- > bar = foo[100-last]['fld1' == "rec 2 fld 1 data"]
- > bar = foo['fld1' contains "rec 2"]
- > bar = foo['fld1' startswith "rec"]
- >
- >or something similar.
-
- All of those suffer the same fate...they are evaluated from the inside out.
- (bar = foo ['fld1' startswith 'fld'] would assign foo[1] to bar, again not
- what you would want).
-
-
- >Basically, I am wondering if what I want to do in Frontier is currently
- >impossible (and if not how do I?), and to recommend that it be implemented in
- >the future if it is.
-
- An interesting suggestion, but I'd advise scripting around the need for the
- time being.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Mon, 1 Aug 1994 19:25:31 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Boris Levitin <boris@WORLD.STD.COM>
- Subject: Re: File Exists?
-
- >> Is there an AppleScript Addition that allows me to check is a file exists
- >> at a specified path? I do not have the Scriptable Finder (yet...)
-
- try
- info for (theFilePath as alias)
- --code for file-found condition
- on error
- --code for file-not-found condition
- end try
- --control passes to here
-
- Boris Levitin WGBH Public Broadcasting, Boston
- boris@world.std.com * boris_levitin@wgbh.org
- I produced this message and am solely responsible for its content
- =========================================================================
- Date: Mon, 1 Aug 1994 18:25:22 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Hypercard droplets? -Reply
-
- In ResEdit change bundle bit 128. Under the "APPL" and "STAK" types
- create one more, file type: "****" then rebuild your desktop, this'll
- allow any file dropped on HC to launch and then the script that Peter
- Fleck sent should work...
-
- >>> Mike Shaff <shaff@QUILTY.STANFORD.EDU> - 7/31/94 5:57 PM >>>
- Is there a method for making Hypercard stacks saved as applications
- into droplets?
- =========================================================================
- Date: Mon, 1 Aug 1994 15:05:21 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: error number -128 is not quitting the script
- In-Reply-To: <9408012320.AA29312@uhunix.uhcc.Hawaii.Edu>
-
- On Mon, 1 Aug 1994, Boris Levitin wrote:
-
- > Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
- >
- > >Are there any work-arounds to make the script quit like it is supposed to?
- >
- > quit or quit me don't work for you?
-
- Unfortunately "quit" and "quit me" will not quit a script.
-
- Any other ideas?
-
- -peter
- =========================================================================
- Date: Mon, 1 Aug 1994 15:19:13 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Renaming files
- In-Reply-To: <9408012319.AA29140@uhunix.uhcc.Hawaii.Edu>
-
- The Jon's Commands scripting addition can easily rename files also:
-
- I believe the syntax is as follows:
-
- renameFile oldfilename to newfilename
-
- It's as simple as that!
- =========================================================================
- Date: Tue, 2 Aug 1994 09:34:57 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
- Subject: Re: Filemaker Pro - printing
-
- Brian, thanks for the suggestion.
-
- I did play with using do script "myprint" to trigger a FileMaker
- printing script from AppleScript. There seems to be a lot of
- timeout problems with these, which is why I hoped for a
- 100% AppleScript solution. I guess FileMaker just isn't there
- yet.
-
- Thanks,
-
- Todd
- =========================================================================
- Date: Mon, 1 Aug 1994 21:46:03 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: error number -128 is not quitting the script
-
- >> Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
- >>
- >> >Are there any work-arounds to make the script quit like >> it is supposed
- to?
- >>
- >> quit or quit me don't work for you?
-
- > Unfortunately "quit" and "quit me" will not quit a script.
-
- > Any other ideas?
-
- Try "tell me to quit"
-
- Peter
- =========================================================================
- Date: Tue, 2 Aug 1994 00:10:09 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Filemaker Pro - printing
- In-Reply-To: <no.id> from "Todd Hooper" at Aug 2, 94 09:34:57 am
-
- --Todd Hooper wrote:
- >
- >Brian, thanks for the suggestion.
-
- You're welcome.
-
- >I did play with using do script "myprint" to trigger a FileMaker
- >printing script from AppleScript. There seems to be a lot of
- >timeout problems with these, which is why I hoped for a
- >100% AppleScript solution. I guess FileMaker just isn't there
- >yet.
-
- Have you tried wrapping the Do Script command in a with timeout
- statement? This is how you stop all of those timeout problems. Try this
- out:
-
- tell application "FileMaker Pro"
- with timeout of 600 seconds
- Do Script "myprint"
- end timeout
- end tell
-
- -Hades
- =========================================================================
- Date: Mon, 1 Aug 1994 18:58:31 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: error number -128 is not quitting the script
- In-Reply-To: <9408020246.AA06533@uhunix.uhcc.Hawaii.Edu>
-
- On Mon, 1 Aug 1994, Peter Fleck - SMM wrote:
-
- > Try "tell me to quit"
-
- Nope, it won't quit a script application, as you can see by trying the
- following short script:
-
- display dialog "Hello"
- tell me to quit -- NOPE, DOESN'T WORK!
-
- tell me
- quit -- NOPE, DOESN'T WORK EITHER!
- end tell
-
- tell current application to quit --THREE STRIKES! DOESN'T WORK EITHER!
- display dialog "I wasn't supposed to make it this far!"
-
-
- How can something that should be so easy to do, be so difficult! I just
- want to exit a script.
-
- peter
- =========================================================================
- Date: Tue, 2 Aug 1994 10:03:58 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <MacScript@CHRISTIE.DEMON.CO.UK>
- Subject: Finding by date created/modified, System 7.5 shutdown items
-
- After reading about the new features in System 7.5 in particular the
- shutdown items folder along the lines of the startup items folder.
-
- I began to think what sort of things I could do and decided that an
- AppleScript to find all the new files or files modified that day and back
- them up would be extremely useful. I would then move copies of these files
- to a new folder on the desktop and then use DropStuff=81 or StuffIt Lite=81 =
- to
- then stuff this and delete the original. I would either file this archive
- away or prompt for a floppy if it's not present to archive it onto.
-
- I am able to create the folder, copy things into it and then delete the
- folder through Finder Liaison 1.1 and by simulating keystrokes in the
- finder through keyquencer although other scripting additions may provide a
- direct way of creating and deleting folders? For example I can create and
- name a folder on the desktop by using
- hide front application
- AutoType "n" holding "command"
- AutoType "dts tms "
- this requires that you launch the script from the finder and that you have
- type it 4 me and the application menu osax. This creates a new folder with
- a name of the date and time in a short format.
-
- The problem I have with this script is that I can't however find all the
- documents that need to be backed up so any suggestions, examples would be
- greatly appreciated.
-
- I could use the file commands scripting addition and step through each file
- checking its creation and modification dates but that would take too long.
- I have also tried the find document scripting addition which looks more
- suitable but I can't coerce it into finding all files modified today. Has
- anyone already done this, pointers or examples would be appreciated.
-
- Neil Christie |Voice/Fax: 031 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Tue, 2 Aug 1994 10:04:08 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <MacScript@CHRISTIE.DEMON.CO.UK>
- Subject: =?iso-8859-1?Q?=22StuffIt_Lite=81_=2F_DropStuff=81_examples_=2B_wh
- at_?=
- =?iso-8859-1?Q?osax_provided_a_command?=
-
- Has anyone got any example scripts for "StuffIt Lite=81 / DropStuff=81. I kn=
- ow
- that DropStuff=81 is not completely scriptable but I was trying to get
- keyquencer to type the name for the archive which works in other programs
- but not here.
- This is do with a script to go in the shutdown items folder of system 7.5
- that finds all new, modified files and then archives them using "StuffIt
- Lite=81
-
- Is there anyway I can find which scripting addition provides a command. I
- have 121 scripting additions all together and have big problems when trying
- to ask questions or tell someone how to do something. I would ideally like
- to type in the command and have the name of the scripting addition
- returned. If this cannot be done can it be done from within the script
- editor?
-
- Thanks, Neil.
-
- Neil Christie |Voice/Fax: 031 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Tue, 2 Aug 1994 07:55:20 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Re: Anyone know of any good "timing" examples? -Reply
-
- In the early betas of AS, there was a folder you could put in your
- system folder called something like "Timer Items" or something like
- that and each of the items you wanted run at a specific time would be
- renamed to that time... so the file would be "[harddisk]:System
- Folder:Timer Items:5:00 PM" and it would run at 5pm. Did this get
- dropped from the final?
- =========================================================================
- Date: Tue, 2 Aug 1994 05:53:22 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: AppleScript, HyperCard & MPW
-
- Any Ideas?
-
- I am looking for a scripting solution to what I thought would be an easy
- routine....
-
- I would like to be able to execute a script in MPW by way of an AppleScript
- event in Hypercard. I have been able to open MPW and write the the string in
- MPW from a script in Hypercard, but I can't figure out a way to execute,
- which in MPW is the "enter" key. Do you know of any resources?
-
- Thanks -
-
- Mike Lennon
-
- K&M Graphics
- =========================================================================
- Date: Tue, 2 Aug 1994 09:59:33 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: error number -128 is not quitting the script
-
- When I run the following script:
-
- try
- frobnitz
- on error
- display dialog "Sorry"
- error number -128
- end try
- beep
-
- I do not get a beep after clicking "OK" in the dialog--which is what I would
- expect with the "error number -128" line. Are you sure your statement
- includes the word "number?" One other suggestion: create the dialog with a
- single "Cancel" button.
-
- Danny
- =========================================================================
- Date: Tue, 2 Aug 1994 09:19:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: FileBusy osax
-
- Glenn Austin (thanks, Glenn!) has placed an osax on gaea for distribution.
- You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/FileBusy.hqx
-
- Here's a brief description.
-
- FileBusy file descriptor
-
- returns true if the file is currently open (busy), false if the file is not
- currently open (not busy).
-
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Tue, 2 Aug 1994 08:33:12 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: MR Mac - Michael Robertson <robertso@SDSC.EDU>
- Subject: Grabbing part of a text string.
-
- There must be an easier way then I've devised to get part of a text string.
- e.g. I have a string similar to, "Different text in here (everytime)" and I
- want to get the contents enclosed in the parenthesis into another string.
- Any easy way to do this?
- =========================================================================
- Date: Tue, 2 Aug 1994 09:10:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: Finding by date created/modified, System 7.5 shutdown items
-
- >After reading about the new features in System 7.5 in particular the
- >shutdown items folder along the lines of the startup items folder.
- >
-
- ...
-
- >The problem I have with this script is that I can't however find all the
- >documents that need to be backed up so any suggestions, examples would be
- >greatly appreciated.
- >
- >I could use the file commands scripting addition and step through each file
- >checking its creation and modification dates but that would take too long.
- >I have also tried the find document scripting addition which looks more
- >suitable but I can't coerce it into finding all files modified today. Has
- >anyone already done this, pointers or examples would be appreciated.
-
- Since you're talking about using 7.5 and thus the Scriptable Finder, it's
- easy to have the Finder get your list for you. Here's a chunk of code that
- finds all files modified since midnight today:
-
- -- first, get a date for midnight
- copy date ((current date)'s date string & " 12:00 am") to midnight
- -- now have the Finder find all the files modified since then
- tell application "Finder"
- copy (every file of entire contents of desktop whose modification
- date > midnight) to theFiles
- end tell
-
- After running this, the variable theFiles contains the list of files. It's
- none too fast (depending on how many files you have on your hard disk), but
- the Finder can still do it much faster than AS can looping through every
- file.
-
-
- ================================================================
- "In order to come up with something that rings true, you would
- have to stay out of the way of that information machine that
- everyone is plugged into. If you're plugged into the same
- information machine, then there's no point to write, 'cause then
- everyone knows the same thing."
- -- Bob Dylan
- ================================================================
- =========================================================================
- Date: Tue, 2 Aug 1994 09:09:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: Request for osaxen
-
- > ...
- >
- > - a choose multiple files dialog box (ie, with "Add", "Add All", "Remove"
- > and "Remove All" buttons) that allows the user to select folders as well as
- > files - a "choose multiple items" dialog would be a more appropriate
- > name... The analogous "choose one item" dbox is also an interesting
- > addition, and I could use that one instead (on a loop), but I'd rather use
- > the "multiple items" one. Finally, either "choose item" dbox should have
- > (according to an option set by the scripter) a check box for selecting
- > aliases instead of their targets. Another option set by the scripter that
- > would be nice to have is one to prevent invisible files and/or folders from
- > being listed.
- >
- > ...
-
- While they don't provide all your ask for here, the Choose Several Files and
- Choose Several Folders commands in Script Tools may help.
-
- -Mark
- =========================================================================
- Date: Tue, 2 Aug 1994 09:09:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: Anyone know of any good "timing" examples?
-
- Hi,
-
- I've developed a package called Scheduler which allows you to schedule the
- execution of scripts (saved as applications). You can have your scripts
- run at specific times, or in response to an array of other events.
-
- A demo copy of Scheduler is available in the AppleScript archive
- (gaea.kgs.ukans.edu).
-
- Cheers
- -Mark
- =========================================================================
- Date: Tue, 2 Aug 1994 10:14:59 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Finding by date created/modified, System 7.5 shutdown items
-
- >After reading about the new features in System 7.5 in particular the
- >shutdown items folder along the lines of the startup items folder.
- >
- >I began to think what sort of things I could do and decided that an
- >AppleScript to find all the new files or files modified that day and back
- >them up would be extremely useful. I would then move copies of these files
- >to a new folder on the desktop and then use DropStuff=81 or StuffIt Lite=81=
- to
- >then stuff this and delete the original. I would either file this archive
- >away or prompt for a floppy if it's not present to archive it onto.
- >
- >I am able to create the folder, copy things into it and then delete the
- >folder through Finder Liaison 1.1 and by simulating keystrokes in the
- >finder through keyquencer although other scripting additions may provide a
- >direct way of creating and deleting folders?
-
- Given that you (will) have System 7.5, you will have the "Scriptable
- =46inder". With Scriptable Finder, you can write things like:
-
- tell application "Finder"
- if exists folder "Testing" of startup disk then
- delete folder "Testing" of startup disk
- end if
- set myNewFolder to make new folder at startup disk with properties
- {name:"Testing"}
- reveal myNewFolder -- this opens the window for the startup disk,
- highlighting the new folder
- end tell
- myNewFolder
-
-
- =46inder Liaison is history, IMHO. So are most needs to use KeyQuencer, et
- al, with Finder. (If you try to create a folder which uses a name already
- taken, Finder creates an "untitled Folder", and puts up an alert telling
- you the name is taken, please use another, and the script stalls. So some
- way of assuring that the folder's intended name is available is a good
- idea. That test I included isn't a good way...just A way.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 2 Aug 1994 10:04:55 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jonathan Levy <Jonathan_Levy@COLOS.PIXAR.COM>
- Subject: None
-
- Subject: Time:9:18 AM
- OFFICE MEMO None Date:8/2/94
- >>Bill Nye <nye@CADENCE.COM> asks:
- >>
- >>Is buying QuicKeys 3.0.1 (list $169) enough to get me the Apple-scriptable
- >>QuicKeys product that is regularly discussed in this mailing list?
- >
- >I don't understand why anyone familiar with AppleScript would be interested
- >in spending $$$ for Quickkeys when they have the same functionality for
- >less money and without any new inits from the AutoType/AutoClick OSAXEN.
- >
- >-Dave
- >(a satisfied AutoType customer)
-
- There are quite a few applications that require a better bridge to scripting
- than some of the osaxen provide. I deal alot with routines in Photoshop in
- which I could only create macros in Quickeys (or Photomatic, which is a
- macro player specifically written for Photoshop but is not really
- scriptable). I use applescript as the glue to bind all of these Quickey
- macros, and it acceptably works.
-
- To answer the question, Quickeys 3.x has a system extension, "Quickeys
- Toolbox" that is able to communicate with applescript. For Quickeys 2.x,
- there was created a system extension called "CEAIC" which provides the same
- functionality to QK 2.x under a different name. I honestly do not know the
- differences between the two extensions.
- The advantages to having the updated version of Quickeys is the extended
- functionality. You can even call Applescript scripts from within QK. QK
- macros can also be written and called in a Quickeys Script. There are quite
- a few more additions to QK 3.x, but I couldn't elaborate. I can say,
- however, that if you have the earlier version, you should upgrade.
- In a perfect world, every application would be applevent aware and OSA
- compliant, but ours isn't.
-
-
- jonathan_levy@colossal.com
- jonathan_levy@pixar.colos.com
- JonathanHL@aol.com
- =========================================================================
- Date: Tue, 2 Aug 1994 13:42:42 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re: Grabbing part of a text string.
-
- >There must be an easier way then I've devised to get part of a text string.
- >e.g. I have a string similar to, "Different text in here (everytime)" and I
- >want to get the contents enclosed in the parenthesis into another string.
- >Any easy way to do this?
-
- I don't know how you're currently extracting the sub-string, but this works
- for me:
-
- set thestring to "Different text in here (everytime)"
-
- set openparen to (offset in thestring of "(")
- set closeparen to (offset in thestring of ")")
-
- set extracted to (text from character (openparen + 1) to character
- (closeparen - 1) of thestring)
-
- extracted
-
- Lee.
-
- Lee K. Hoong
- Emory University
- Atlanta, GA 30322
- Internet: lhoong@unix.cc.emory.edu
- AOL: LHOONG
- ==========================
- Opinions and comments expressed are mine; I do not represent Emory
- University.
- =========================================================================
- Date: Tue, 2 Aug 1994 11:26:38 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Get foo as {bar, baz}
-
- The Apple Event Registry defines the optional parameter to the Get Data
- event as being a list of types, in order of preference. The target
- application is supposed to return the desired data in the type requested by
- the left-most item in the list which it CAN use to represent the data. [It
- is not an error if the first type[s] in the list are impossible, only if
- all of them are.]
-
- I have written a small application (would you believe a scriptable,
- recordable "TrafficLight"--the old (mid 1980s) MPW "Sample" program) which
- implements the get data event this way. And it seems to work correctly
- when I use Frontier to build and send test events:
-
- with objectModel
- appleEvent ('JBtl', 'core', 'getd', '----', objspec (version), 'rtyp',
- { 'xxxx', stringType})
-
- does return the application version as a string, bypassing the impossible
- type 'xxxx'.
-
- The equivalent AppleScript would be something like:
-
- tell application "TrafficLight"
- get version as {=ABclass xxxx=BB, string}
- end tell
-
- but there is a syntax error reported on the {. [Leaving out the =ABclass
- xxxx=BB doesn't help: {string} also produces the syntax error.]
-
- I first just copied the definition of the get event from the English
- Terminology.r header (the English version of the 'aeut'), into my 'aete' (I
- only support get and set from the standard events (core) suite, at the
- moment). Then I adjusted the type of the optional "as" parameter to list,
- rather than type, so the Dictionary now says:
-
- get: Get the data for an object
- get reference -- the object whose data is to be returned
- [as list] -- the desired types for the data, in order of preferenc=
- e
- Result: anything -- the data from the object
-
- That doesn't allow a list after the as (neither does [as anything]...just
- tried that).
-
- So am I missing some AppleScript syntax, or is AppleScript 1.1 convinced
- incorrectly that a class name must follow the as?
-
- Shouldn't the 'aeut' match the Registry on this matter?
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 2 Aug 1994 13:47:07 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rob Dewhirst <robd@FARALLON.COM>
- Subject: Re: Basic Questions
-
- Peter Fleck writes:
-
- >I log on a local TeleFinder BBS. TeleFinder is similar to First Class
- >in that it gives the user a Mac-like interface. After downloading a
- >bunch of files, I want TeleFinder to hang up the modem. TF does have a
- >dictionary and it includes a Hang Up command.
- >
- >The problem is there is no way to tell when the download is done.
- >First I tried sending Hang Up during the download, thinking it
- >wouldn't activate until the download finished but no such luck. It
- >hung up during the download.
-
- Peter,
-
- You might find an easier way to do this is to use Telefinder Pro, which
- has its own built-in scripting language that includes the RECVMAC command.
-
- TF Pro has a built-in terminal emulator and simple scripting language that
- can be called from AppleScript. You might find it easier to do all of your
- file downloading from a terminal script, and use GUI for all other tasks.
-
- It does seem silly that there is no "receive file" command for Telefinder.
-
-
- I put Telefinder Pro 2.2.3 on gaea.
- =========================================================================
- Date: Tue, 2 Aug 1994 08:50:18 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Grabbing part of a text string.
- In-Reply-To: <9408021741.AA07552@uhunix.uhcc.Hawaii.Edu>
-
- The following works fine:
-
- set thestring to "Different text in here (everytime)"
-
- set oldDelimiters to AppleScript's text item delimiters
- set AppleScript's text item delimiters to "("
- set partialText to 2nd text item of thestring
- set AppleScript's text item delimiters to ")"
- set enclosedText to 1st text item of partialText
- set AppleScript's text item delimiters to oldDelimiters
-
- display dialog enclosedText
- =========================================================================
- Date: Tue, 2 Aug 1994 09:05:15 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: How to get list of running apps
-
- How do I get a list of the currently running applications?
-
- I suppose I will have to resort to an osax. It looks like Jon's Commands
- doesn't do it, so which osaxen can do such a thing?
-
- Thanks,
- peter
- =========================================================================
- Date: Tue, 2 Aug 1994 14:17:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: How to get list of running apps
- In-Reply-To: Your message of "Tue, 02 Aug 94 09:05:15 -1100"
-
- Peter,
-
- >How do I get a list of the currently running applications?
- >
- >I suppose I will have to resort to an osax. It looks like Jon's Commands
- >doesn't do it, so which osaxen can do such a thing?
-
- Use the Processes osax in Mark Alldritt's Script Tools collection.
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/ScriptTools1.3.sit.hqx
-
- pf
- =========================================================================
- Date: Tue, 2 Aug 1994 12:22:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: How to get list of running apps
-
- At 9:05 8/2/94 -1000, Pete Hinely wrote:
- >How do I get a list of the currently running applications?
- >
- >I suppose I will have to resort to an osax. It looks like Jon's Commands
- >doesn't do it, so which osaxen can do such a thing?
-
- *grin* just found that today. RunningApps, part of the Sweet Suite
- (available on gaea)
-
- -roy
- =========================================================================
- Date: Tue, 2 Aug 1994 09:22:04 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: My folder and file processor
-
- The following is a little AppleScript that I wrote that can be used to
- recursively process folders and files. It only requires the "File
- Commands" scripting addition that comes with AppleScript. Maybe someone
- has better solution, but feel free to use my code from this example.
-
- -------------------------------------------------------
- on RecursionNavigate(theFilesAndFolders)
- repeat with currentItem in theFilesAndFolders
- if (info for currentItem) is folder then
- set folderContents to (list folder (currentItem))
- set fullPathNameList to {}
- repeat with i in folderContents
- set fullPathName to (currentItem as string) & i
- if (info for fullPathName) is folder then
- set fullPathName to (fullPathName as string) & ":"
- end if
- set end of fullPathNameList to fullPathName
- end repeat
- RecursionNavigate(fullPathNameList)
- else
- Process(currentItem) --This is the action to do to files!
- end if
- end repeat
- end RecursionNavigate
- =========================================================================
- Date: Tue, 2 Aug 1994 14:27:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: new items on gaea
-
- I've placed the latest version of KeyQuencer on gaea. You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/keyquencher12.hqx
- ftp://gaea.kgs.ukans.edu/applescript/addons/keyquencherfatmacroeditor12.hqx
-
- You will also find Telefinder Pro in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/TeleFinderPro2.2.3.sit.hqx
-
-
- pf
- =========================================================================
- Date: Tue, 2 Aug 1994 17:12:50 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shaddar@AOL.COM
- Subject: Rebuild Desktop -> Extensions Off
-
- I know that you can rebuild the desktop using AS by tossing out the
- desktop files. Is there any way to do the same for extensions off?
- I find writing a script to rebuild much easier than sitting, waiting,
- holding down keys. I'd like the same convenience for extensions off.
- Even if not possible with AS, is there anyway to have it restart with
- extensions off other than holding down the shift key?
-
- Thanks! :)
-
- ~Shaddar
- =========================================================================
- Date: Wed, 3 Aug 1994 09:12:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AppleScript, HyperCard & MPW
-
- Mike Lennon asks:
-
- >I would like to be able to execute a script in MPW by way of an AppleScript
- >event in Hypercard. I have been able to open MPW and write the the string in
- >MPW from a script in Hypercard, but I can't figure out a way to execute,
- >which in MPW is the "enter" key. Do you know of any resources?
-
- MPW supports the "do script" AppleEvent. You can use this to feed a shell
- script sequence to execute. This can be a multi-line sequence if you want.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 2 Aug 1994 14:52:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- At 17:12 8/2/94 -0400, Shaddar@AOL.COM wrote:
- > I know that you can rebuild the desktop using AS by tossing out the
- >desktop files.
-
- Something we here found just very recently: There's an even easier way that
- doesn't involve rebooting your Mac:
-
- Quit all applications
- Force-quit Finder
- While finder is coming up, holding down cmd & opt (like you would do when
- rebooting)
-
- Your mac will go on to rebuild the desktop files, and you save quite a bit
- of time (My mac is so cluttered with extensions that it takes it a bit to
- come up).
-
- >Is there any way to do the same for extensions off?
-
- Can't you just rename the Extensions folder? Actually, if you want to be
- really neat, you can make it toggle ... something like (in pseudo-english):
-
- set MyName to "Extensions.ASDis"
- set mPath to (item 1 of (list disks)) & ":System Folder:"
- set NewName to mPath & MyName
- set OldName to "Extensions"
-
- if NewName exists then
- renameFile NewName to OldName
- else
- rename (mPath & OldName) to MyName
- end if
-
- The whole thing revolves around renameFile, which Jon was gracious enough
- to supply -- check out Jon's Commands (a truly awesome scripting component.
- What's the singular of OSAX anyway?)
-
- -roy
- =========================================================================
- Date: Tue, 2 Aug 1994 15:07:00 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript, HyperCard & MPW
-
- >Mike Lennon asks:
- >
- >>I would like to be able to execute a script in MPW by way of an AppleScript
- >>event in Hypercard. I have been able to open MPW and write the the string in
- >>MPW from a script in Hypercard, but I can't figure out a way to execute,
- >>which in MPW is the "enter" key. Do you know of any resources?
- >
- >MPW supports the "do script" AppleEvent. You can use this to feed a shell
- >script sequence to execute. This can be a multi-line sequence if you want.
-
- Sufficiently old versions of MPW and ToolServer seriously hosed the reply
- event to a do script in the face of error conditions in the script (and
- sometimes no error conditions, too). [Current versions seem fine.]
-
- One of the old ToolServer versions was, I think, my favorite: it appeared
- to have a two-byte error code variable, and put the 'errn' into the reply
- as a 4-byte ('long') value by using AEPutParamPtr () pointing at the error
- code variable and specifying 'long' as the type and 4 as the length,
- thereby putting out a non-zero 'errn' only the top two bytes of which
- mattered.
-
- Fine in current versions...beware of odd effects with older ones.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 2 Aug 1994 18:12:43 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Duffield <duffiem@AA.WL.COM>
- Subject: Re: Rebuild Desktop -> Extensions Off
- In-Reply-To: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM> "Re: Rebuild Desktop
- -> Extensions Off" (Aug 2, 2:52pm)
-
- On Aug 2, 2:52pm, Roy S. Rapoport wrote:
- > Subject: Re: Rebuild Desktop -> Extensions Off
- > At 17:12 8/2/94 -0400, Shaddar@AOL.COM wrote:
- > > I know that you can rebuild the desktop using AS by tossing out the
- > >desktop files.
- >
- > Something we here found just very recently: There's an even easier way that
- > doesn't involve rebooting your Mac:
- >
- > Quit all applications
- > Force-quit Finder
- > While finder is coming up, holding down cmd & opt (like you would do when
- > rebooting)
- >
- > Your mac will go on to rebuild the desktop files, and you save quite a bit
- > of time (My mac is so cluttered with extensions that it takes it a bit to
- > come up).
- >
-
- This is NOT the same as rebooting with cmd-opt held down. I don't know the
- entire explanation of this, but as I understand it there are times when
- you will not get a complete rebuild of your desktop files when rebuilt in this
- manner.
-
- [Discussion of Extension Folder renaming omitted to save bandwidth]
-
- > -roy
- >-- End of excerpt from Roy S. Rapoport
-
-
-
-
- --
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Mark J. Duffield | duffiem@aa.wl.com
- Sr. Systems Analyst |
- Preclinical Scientific Computing | MIME Spoken here.
- Parke Davis Pharmaceutical Research |
- Ann Arbor, MI 48105 |
- =========================================================================
- Date: Tue, 2 Aug 1994 15:24:57 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- At 18:12 8/2/94 -0400, Mark Duffield wrote:
- >This is NOT the same as rebooting with cmd-opt held down. I don't know the
- >entire explanation of this, but as I understand it there are times when
- >you will not get a complete rebuild of your desktop files when rebuilt in this
- >manner.
-
- Well, umm, if you say so. Do you know where I could find an explanation
- of why it's not the same?
-
- -roy
- =========================================================================
- Date: Tue, 2 Aug 1994 17:20:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Hon, Michael T" <honmt@TXPCAP.HOU.XWH.BP.COM>
- Subject: Re: An Applescript to play a System 7 2x clickable sound -
- possible?
-
- MR Mac - Michael Robertson <robertso@SDSC.EDU> sez:
-
- > I need a script to play a System 7 sound file. You know the ones you can
- > double click and automatically play. Any ideas?
-
- In GTQ, there's a play sound OSAX. It's dictionary:
-
- play: plays a specified sound stored in a sound file
- play reference -- reference to the sound you want to play within the
- specified file
- [in file specification] -- the file containing the sound (if n
- o file is
- specified, the system sound list is used)
- [at volume small integer] -- sound volume to play the sound at
-
- The way to make it work, given a sound file "Hard Drive:Sounds:R&S:joyyy!!!"
- would be:
-
- play every sound in "Hard Drive:Sounds:R&S:joyyy!!!"
-
- The "every" bit is key.
-
- HTH.
-
- --
- Mike Hon
- Software Consultant honmt@txpcap.hou.xwh.bp.com
- Precision Task Group Houston, TX 713/560-3017
- =========================================================================
- Date: Wed, 3 Aug 1994 10:39:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM> asks:
-
- >At 18:12 8/2/94 -0400, Mark Duffield wrote:
- >>This is NOT the same as rebooting with cmd-opt held down.
- >
- >Well, umm, if you say so. Do you know where I could find an explanation
- >of why it's not the same?
-
- As I understand it, the difference is that command-option doesn't create
- new "Desktop DB" and "Desktop DF" files, it simply tries to clear out the
- contents of the existing files and reuse them. However, there are situations
- where this doesn't clear up the corruption that may occur. Thus, to be safe,
- you need to delete these desktop files and force the system to create new ones.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 2 Aug 1994 17:52:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Clasen <cmdesign@NETCOM.COM>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- >On Aug 2, 2:52pm, Roy S. Rapoport wrote:
- >> Subject: Re: Rebuild Desktop -> Extensions Off
- >> At 17:12 8/2/94 -0400, Shaddar@AOL.COM wrote:
- >> > I know that you can rebuild the desktop using AS by tossing out the
- >> >desktop files.
- >>
- >> Something we here found just very recently: There's an even easier way that
- >> doesn't involve rebooting your Mac:
- >>
- >> Quit all applications
- >> Force-quit Finder
- >> While finder is coming up, holding down cmd & opt (like you would do when
- >> rebooting)
- >>
- >> Your mac will go on to rebuild the desktop files, and you save quite a bit
- >> of time (My mac is so cluttered with extensions that it takes it a bit to
- >> come up).
- >>
- >
- >This is NOT the same as rebooting with cmd-opt held down. I don't know the
- >entire explanation of this, but as I understand it there are times when
- >you will not get a complete rebuild of your desktop files when rebuilt in this
- >manner.
- >
- >[Discussion of Extension Folder renaming omitted to save bandwidth]
- ==========================================
- Sometimes this will hang the Mac; be sure to quit all applications before
- trying this. The best rebuild is to turn off all extensions and the rebuild
- on reboot. I have been told this is the cleanest rebuild. Diskdoubler also
- used to distribute a Desktop Reset to do a complete rebuild; I think it
- deleted the desktop database, if I remember correctly.
- That's all for now
-
- -------
- Michael A. Clasen | Voice - 1-415-703-8736
- Clement Mok Design | Fax - 1-415-703-9901
- 600 Townsend St. | Internet: cmdesign@netcom.com
- -------------------------------------------------
- Play for me, oh sweetest lute and lift away all strife
- Ply for me to celebrate the joyousness of life
- MP-C --1994
- =========================================================================
- Date: Tue, 2 Aug 1994 22:59:52 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: My folder and file processor
- In-Reply-To: <no.id> from "Pete Hinely" at Aug 2, 94 09:22:04 am
-
- --Pete Hinely wrote:
- >
- >The following is a little AppleScript that I wrote that can be used to
- >recursively process folders and files. It only requires the "File
- >Commands" scripting addition that comes with AppleScript. Maybe someone
- >has better solution, but feel free to use my code from this example.
-
- Well, your's looks pretty good, but you really need to take a look
- at the walk folders OSAX. It's part of Jon's Commands and it does what
- you want without using Apple Events to do all of the recursion. It makes
- for a much more elegent solution. At least with the current version of
- AppleScript.
-
- -Hades
- =========================================================================
- Date: Tue, 2 Aug 1994 23:00:44 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Rebuild Desktop -> Extensions Off
- In-Reply-To: <no.id> from "Roy S. Rapoport" at Aug 2, 94 02:52:12 pm
-
- --Roy S. Rapoport wrote:
- >
- >What's the singular of OSAX anyway?)
-
- OSAX is singular. The plural is OSAXEN.
-
- -Hades
- =========================================================================
- Date: Tue, 2 Aug 1994 23:39:15 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: How to get list of running apps
-
- GTQ Scripting Library has the List Applications OSAX for providing all running
- applications. It also has an Is Running OSAX (I may not have the exact name)
- for querying about a specific application.
-
- Peter
- =========================================================================
- Date: Tue, 2 Aug 1994 20:02:16 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: My folder and file processor
- In-Reply-To: <9408030258.AA03618@uhunix.uhcc.Hawaii.Edu>
-
- >
- > Well, your's looks pretty good, but you really need to take a look
- > at the walk folders OSAX. It's part of Jon's Commands and it does what
- > you want without using Apple Events to do all of the recursion. It makes
- > for a much more elegent solution. At least with the current version of
- > AppleScript.
- >
- > -Hades
- >
-
- As Jon Pugh, the author of Jon's Commands, has confirmed, the "walk
- folders" command does not work in all instances. I started out trying to
- use his command for my MacPGP scripts. As I remember, with the "walk
- folder" command you cannot access a global variable from within script you
- are processing the files or folders with.
-
- -peter
- =========================================================================
- Date: Tue, 2 Aug 1994 23:46:16 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: How does AS know which osax to use?
-
- >From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- >>how does AS know which osax to choose from when asked to perform a command?
- >>For example, Apple's System Object Suite, The Sweet Suite (by Gerry Davis)
- >>and the Script Tools Suite (by Mark Alldritt) all define a 'choose folder'
- >>command ***with the same syntax***. If one has all of these in the
- >>Scripting Additions folder, how does AS decide which to use?
- >
- >Jon Pugh no doubt knows, but...most likely, either the first or last osax
- >encountered which uses a given syntax for a particular event class/event id
- >pair will be chosen. So long as they do the same thing, it really doesn't
- >matter.
-
- The problem is when one of them has bugs and you would like to throw away
- the culprit. Luckily, the choose folder command is pretty simple. ;)
-
- The trouble is, I don't really know which it is, first or last. I've never
- cared. I follow John's advice below, which is to not pollute your
- Scripting Additions folder. John and I had a nice discussion some time ago
- about how the loading mechanism is done. It makes it simple enough to
- install needed osaxen when the time comes. I only install what I'm using
- and pull things that don't work.
-
- >This issue has led me to do three things:
- >
- >1. Keep the Scripting Additions folder as empty as possible. (For
- >example, I have the GTQ library...I have only about two of the pieces
- >installed at the moment.)
- >
- >2. Not add to the supply.
- >
- >3. Use Finder labels to mark the non-Apple Additions I do have, so I can
- >find them quickly and rip them out.
-
- My plan is to someday (after I burn out from too much work, which may be
- soon) finish my class info osaxen which will allow scripts to police the
- installed osaxen. They should also be able to install things too, but
- getting them to work in the executing script would be tricky. I think it
- could be done with another osax, but couldn't everything?
-
- Life goes on...
-
- Jon
- =========================================================================
- Date: Tue, 2 Aug 1994 23:46:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Frontier records & lists
-
- >From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- >
- >>I have question regarding accessing a list of records in Frontier.
- >>When scripting Quark, you can do something like
- >>
- >> get(page[1].picturebox[color == "foo"].name)
- >>
- >>and you will be returned a list of the names of all the picture boxes one
- >>page 1 that have the color "foo".
- >
- >That is achieved through a collaboration (on one of two levels) between
- >(speaking carelessly) the Apple Event Manager and the Application.
- >[Really, it's a part of the AE Manager which appears as a separate
- >library.]. I suspect XPress uses the faster level (in which the
- >application somehow marks elements for further consideration) rather than
- >the slower level (in which the Manager has to ask for individual
- >comparisons for each and every element to be tested).
-
- Actually, I believe that Quark's scripting author Dave Shaver wrote his own
- replacement of the OSL (the Open Scripting Library which implements the
- object specifier routines in Inside Macintosh - InterApplication
- Communication) since the Apple OSL isn't all it could be. It's faster than
- the OSL and probably has its own quirks. ;)
-
- Jon
- =========================================================================
- Date: Tue, 2 Aug 1994 23:46:37 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Get foo as {bar, baz}
-
- >From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- >
- > The Apple Event Registry defines the optional parameter to the Get Data
- >event as being a list of types, in order of preference. The target
- >application is supposed to return the desired data in the type requested by
- >the left-most item in the list which it CAN use to represent the data. [It
- >is not an error if the first type[s] in the list are impossible, only if
- >all of them are.]
- >
- >...
- >
- >So am I missing some AppleScript syntax, or is AppleScript 1.1 convinced
- >incorrectly that a class name must follow the as?
- >
- >Shouldn't the 'aeut' match the Registry on this matter?
-
- Actually, the aete and the aeut are pretty immaterial when building events
- and object specifiers. All the terminology resources provide is a mapping
- from text to codes. Events are idnetified by comparing the term you typed
- against the terms in the scope of your tell block. Once the event is
- found, parameters are added with the only structure imposed by
- AppleScript's rules. None of the events are checked for required
- parameters or anything. All of that is left for the app to implement.
-
- The as issue is simply an oversight. I didn't remember this tidbit from
- the Registry and I don't think the rest of the team did either. The way it
- seems to have been remembered and implemented is as a single prefered type.
- That's how I implemented it in PhotoFlash too. It would be trivial to fix
- it in the app, but since AppleScript seems to be suffering from the same
- limitation, its of questionable worth. In addition, it appears that it is
- most often the case (in my script writing experience) that you either want
- data as a single specific type. Using a list seems like unnecessary
- overkill, despite the usefullness. You can also use try/catch to deal with
- multiple types, so it's not crippling.
-
- Jon
- =========================================================================
- Date: Wed, 3 Aug 1994 08:11:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Get foo as {bar, baz}
-
- At 23:46 8/2/94 -0700, Jon Pugh wrote:
- >The as issue is simply an oversight. I didn't remember this tidbit from
- >the Registry and I don't think the rest of the team did either. The way it
- >seems to have been remembered and implemented is as a single prefered type.
- >That's how I implemented it in PhotoFlash too. It would be trivial to fix
- >it in the app, but since AppleScript seems to be suffering from the same
- >limitation, its of questionable worth. In addition, it appears that it is
- >most often the case (in my script writing experience) that you either want
- >data as a single specific type. Using a list seems like unnecessary
- >overkill, despite the usefullness. You can also use try/catch to deal with
- >multiple types, so it's not crippling.
-
- I had forgotten, too. I implemented the handling of the 'rtyp' parameter
- as if it should be a single typeType...then I went back and read the
- Registry (and was rather surprised). And re-implemented. [Frontier's
- core.get () glue coerces the as parameter to a string4 (typeType), so it
- too doesn't deal with the list case...I had to use a "raw" Frontier
- appleEvent () verb to test my toy app.]
-
- I think I'll implement per the Registry in the future, even though
- AppleScript can't express the list form (as of 1.1). Just in case some
- client program makes the call, rather than a scripting system. [It's a
- little hard to conceive of a scripting situation in which one would want a
- list of types there, unless (I suppose) one wanted to cover an earlier and
- a later version of some application which provide different types for some
- object or property.]
-
- Thanks, Jon.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 3 Aug 1994 08:17:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: How does AS know which osax to use?
-
- At 23:46 8/2/94 -0700, Jon Pugh wrote:
- >The trouble is, I don't really know which it is, first or last. I've never
- >cared. I follow John's advice below, which is to not pollute your
- >Scripting Additions folder. John and I had a nice discussion some time ago
- >about how the loading mechanism is done. It makes it simple enough to
- >install needed osaxen when the time comes. I only install what I'm using
- >and pull things that don't work.
-
- Hmm. Good advice. One question:
-
- I've got a bunch of OSAXEN (my policy up to now, unfortunatelly, has been
- to install things if they look cool :) ). I've got no real idea which are
- used by each script, and this can be important, because I'm exporting these
- scripts to various other machines at work. As it is, my current policy on
- that is to periodically install *all* the osaxen I have on my machine on
- the other machines, but I'd love to find a way to find which osaxen a
- script is using.
-
- Any way to do that?
-
- -roy
- =========================================================================
- Date: Wed, 3 Aug 1994 08:56:28 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- Michael Clasen wrote:
-
- >The best rebuild is to turn off all extensions and the rebuild
- >on reboot. I have been told this is the cleanest rebuild.
- >
-
-
- One problem with rebuilding the desktop with Extensions off occurs if you
- use Macintosh Easy Open, which will be included with 7.5. MEO rebuilds the
- desktop _differently_ than normally. Thus, if you rebuild w/o Extensions,
- the next time you restart _with_ extensions, MEO will force a rebuild.
-
- I found a trick with 7.1: create a file (with anything) named Desktop at
- the top level of your hard disk. On the next rebuild, the Finder will see
- that this file is newer than the DB and DF files, and rebuild the desktop.
- This also works with 7.5 (though not all programs will let you replace the
- existing Desktop file at the top of the disk.
-
- So, given this, I tried using the Scriptable Finder to create a new
- "desktop" file at the top of the disk. This didn't work, because SF won't
- let you replace an invisible file. So, I used the Read/Write Commands OSAX
- to write a single space to the desktop file, thus changing its modification
- date. Here, then, is a script that does this:
-
- copy alias ((path to startup disk as text) & "desktop") to desktopfile
- open for access desktopfile with write permission
- write " " to desktopfile -- so the modification date is changed
- close access desktopfile
-
- tell application "Finder"
- restart
- end tell
-
- I have tested this, though not extensively, and it works on my system; your
- mileage may vary. One thing that should be added is a check to make sure
- the desktop file exists. Otherwise, simply save it as an application,
- double-click on it, and the Mac restarts & the desktop file is rebuilt.
-
- BTW, an early beta of the Scriptable Finder had a "rebuild desktop
- database" command. There were a bunch of problems with this (not the least
- was you had to set a very large timeout figure to keep the script from
- erroring, and the fact that it didn't take into account the MEO portion of
- the desktop files), and it was removed.
-
- Steve
- =========================================================================
- Date: Wed, 3 Aug 1994 10:59:44 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
- Subject: Visual cues that an AppleScript is running
-
- Greetings,
-
- I know this may sound like a lame question, and there may even be such
- something out there somewhere already that does this, but I don't have a lot
- of time to go hunting (and I'm not as involved in AS'ing as many of you
- obviously are) and this is certainly the right place to ask:
-
- Is there some extension, OSAX or such that will give me a visual indication
- that an AppleScript is running, other than a generic spinning cursor?
-
- This is bad, since my wife (and myself) will routinely use some AppleScripts
- that I have written for SITcomm to automate connections and such, but on
- occassion the actions will fail and AS will continue to run until it times
- out. She (i) will notice this, and, forgetting that AS is still running
- try to do whatever and can't until the script has been terminated.
- A visual indicator besides the boring spinning cursor would be very useful.
-
- For example, a little AppleScript icon in the menu bar that blinks on and off,
- or a trite message or even just the AS name, in the same fashion as SuperClock,
- in the menu bar. Perhaps maybe a dialog box with a CANCEL to obviously kill
- the script.
-
- Does anybody have suggestions, ideas or solutions?
-
- Thanks in advance,
-
- Taylor
-
-
- +-----------------------------------------------------------------+
- | Taylor Leaming leamingt@tobor.sps.mot.com |
- | Motorola, Inc. |
- | Austin, Texas (512) 891-6211 |
- +-----------------------------------------------------------------+
- =========================================================================
- Date: Wed, 3 Aug 1994 11:05:08 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Visual cues that an AppleScript is running
-
- >Greetings,
- >
- >I know this may sound like a lame question, and there may even be such
- >something out there somewhere already that does this, but I don't have a lot
- >of time to go hunting (and I'm not as involved in AS'ing as many of you
- >obviously are) and this is certainly the right place to ask:
- >
- >Is there some extension, OSAX or such that will give me a visual indication
- >that an AppleScript is running, other than a generic spinning cursor?
-
- One possibility is the ProgressBar application, which puts up a (surprise!)
- progress bar window. You control a couple of lines of caption (and the
- window title), and the current amount of progress with AppleScript
- commands.
-
- It's on gaea, somewhere in the /applescript area. Unfortunately, gaea is
- either sick or overloaded at the moment (it produces an effect I haven't
- seen before, using Anarchie), so I can't give you the path.
-
- --John
-
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 3 Aug 1994 08:14:37 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Rebuild Desktop -> Extensions Off
- In-Reply-To: <9408031556.AA00919@uhunix.uhcc.Hawaii.Edu>
-
- On Wed, 3 Aug 1994, Steve Michel wrote:
- >
- > So, given this, I tried using the Scriptable Finder to create a new
- > "desktop" file at the top of the disk. This didn't work, because SF won't
- > let you replace an invisible file. So, I used the Read/Write Commands OSAX
- > to write a single space to the desktop file, thus changing its modification
-
- Another cool goody from the Finder Scripting Toolkit.... Instead of using
- the Scriptable Finder to restart, just use the normal Finder to do it.
-
-
- tell application "Finder" to <<event FNDRrest>>
-
- -peter
-
-
- P.S. Replace the "<<" with an option-backslash and the ">>" with a
- shift-option-backslash in the script editor.
- =========================================================================
- Date: Wed, 3 Aug 1994 14:30:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Visual cues that an AppleScript is running
- In-Reply-To: Your message of "Wed, 03 Aug 94 11:05:08 PDT"
-
- John Baxter said....
-
- >It's on gaea, somewhere in the /applescript area. Unfortunately, gaea is
- >either sick or overloaded at the moment (it produces an effect I haven't
- >seen before, using Anarchie), so I can't give you the path.
-
-
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/ProgressBar.101.hqx
- =========================================================================
- Date: Wed, 3 Aug 1994 15:38:10 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
- Subject: Value Lists in FMPro via AS
-
- Does anyone out there know how to access the value list of a FMPro field
- using AppleScript?
-
- Thanks,
-
- Kevin
- =========================================================================
- Date: Wed, 3 Aug 1994 15:57:37 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Sample Scripts
-
- Does anyone out there have any sample scripts which incorporates the process of
- editing text files without the use of a scriptable text editor. I'm trying to
- design a droplet which will read a text file and find either a character or a
- word within a text file and delete/replace them.
-
- I know that Script Tools 1.3 has the File IO addition which can facilitate
- reading/writing of text files but I'm not too clear on how to use the read/write
- and position calls to do editing. Should I be using this OSAX or something else?
-
- Any help would be greatly appreciated.
-
- Internet: kim-son_tran@cc.atinc.com or tk@cc.atinc.com
- =========================================================================
- Date: Wed, 3 Aug 1994 15:50:07 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Comments: Resent-From: Atul Butte <ATUL@BROWNVM>
- Comments: Originally-From: Atul Butte <ATUL@BROWNVM>
- From: Atul Butte <ATUL@BROWNVM.BITNET>
- Subject: Some answers for [Re: More on Frontier & TCP/IP]
-
- >There's an obvious problem with this script: it depends on coarse
- >timing figures to determine if the connection has finished. Basically,
- >if nothing's come over the line in 10 seconds, it assumes the transfer
- >is done. I'm still trying to understand the TCP osax interface to
- >determine if there's a better way to check for connection closure.
-
- There are two better ways:
-
- First, in your loop, you could repeat while (connection status of (tcp
- status stream <yourstream> ) = Connected
-
- (i don't have the exact syntax in front of me at this moment). tcp status
- will return a stream status record with the current status of the stream
- (including how many bytes are waiting to be read, whether the connection is
- still up, to whom are we talking, etc).
-
- However, the second, and better way, is to do something like:
- tcp receive stream <yourstream> destination file "your file name" maximum
- seconds 20
-
- This will tell the osax to automatically download all remaining data on the
- stream into the file you specify UNTIL EITHER the connection is closed OR
- 20 seconds go by without any new data.
-
- Hope these tips are helpful.
-
- Atul (author of that tcp osax...)
- atul_butte@brown.edu
-
- P.S. I ACTUALLY have a script working that will TELNET to a NeXT computer...
- now once I make sure it works for other hosts, I will release it. Also,
- I know I promised those FaceSpan/TCPIP projects... I'll release them as
- soon as possible...
- =========================================================================
- Date: Wed, 3 Aug 1994 16:18:19 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Re: Some answers for [Re: More on Frontier & TCP/IP]
-
- >There are two better ways:
- >
- >First, in your loop, you could repeat while (connection status of (tcp
- > status stream <yourstream> ) = Connected
-
-
- It seems to me that I played around with this, but in Frontier you
- don't get "Connected", but rather a binary value. While I'm sure
- that value could be interpreted bit-wise to recover the necessary
- status info, I haven't had a chance to dig deeper. (My memory
- of this is hazy now, but I *think* this was how it worked.)
-
-
- >
- >(i don't have the exact syntax in front of me at this moment). tcp status
- >will return a stream status record with the current status of the stream
- >(including how many bytes are waiting to be read, whether the connection is
- >still up, to whom are we talking, etc).
- >
- >However, the second, and better way, is to do something like:
- >tcp receive stream <yourstream> destination file "your file name" maximum
- >seconds 20
- >
- >This will tell the osax to automatically download all remaining data on the
- >stream into the file you specify UNTIL EITHER the connection is closed OR
- >20 seconds go by without any new data.
- >
-
-
- This works great, except it doesn't run asynchronously. If you want to
- do stuff while the transfer goes on in the background, you're out of
- luck.
-
- -David.
-
-
- ____________________________________________________
-
- David C. Myers
- myers@acec.com
- =========================================================================
- Date: Wed, 3 Aug 1994 10:22:02 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Sample Scripts
- In-Reply-To: <9408031949.AA15726@uhunix.uhcc.Hawaii.Edu>
-
- On Wed, 3 Aug 1994, Kim-son Tran wrote:
-
- > Does anyone out there have any sample scripts which incorporates the process o
- > editing text files without the use of a scriptable text editor. I'm trying to
- > design a droplet which will read a text file and find either a character or a
- > word within a text file and delete/replace them.
- >
-
- One way to do it is with the Read/Write scripting addition that comes with
- AS 1.1. Basically what you do is read in the text using the delimiter
- that would make things easiest. If the word your looking for has quotes
- around it, read using " as a delimiter. I think you can use spaces and
- line returns as delimiters also.
-
- So you read using the delimiter, and modify the item you want. Then you
- write the file out using a loop to process the delimited text list. You
- must add the delimiter back in after you write each item of the list.
-
- It sounds harder than it is. If you want some code, I can post it.
- =========================================================================
- Date: Wed, 3 Aug 1994 13:32:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: What is FrontMost
-
- And where can I get it?
- =========================================================================
- Date: Wed, 3 Aug 1994 10:43:48 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Sample Scripts
- In-Reply-To: <Pine.3.89.9408032016.A22200-0100000@abdallah>
-
- On Wed, 3 Aug 1994, Borre Ludvigsen wrote:
-
- > On Wed, 3 Aug 1994, Pete Hinely wrote:
- >
- > > It sounds harder than it is. If you want some code, I can post it.
- >
- > yes please - trying to fix Norwegian characters and quotes is killing me.
- >
-
- Aren't there any scriptable apps out there that will find and
- replace? That might be an easier and faster route.
-
- I doubt if this code will help you change norwegian quotes, but here it
- is anyway.
-
- You will have to expand the following code to work for a more generalized
- case. This example finds the first AND ONLY quoted word in a file and
- replaces it.
-
- set delimitedTextList to read configFile as text using delimiters {"\""}
- --set oldWord to item 2 of delimitedTextList
-
- display dialog "Enter new word:" default answer ""
- set newWord to (text returned of result)
-
- open for access configFile with write permission
- write 1st item of delimitedTextList & "\"" to configFile
- set positionMarker to (length of first item of delimitedTextList) + 2
- write newWord & "\"" to configFile starting at positionMarker
- set positionMarker to positionMarker + (length of newWord) + 1
- write 3rd item of delimitedTextList to configFile starting at positionMarker
- close access configFile
-
-
- That's all folks...
- peter
- =========================================================================
- Date: Wed, 3 Aug 1994 16:55:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Emerson <tree@BEDFORD.SYMANTEC.COM>
- Subject: Re: Sample Scripts
-
- >
- >Aren't there any scriptable apps out there that will find and
- >replace? That might be an easier and faster route.
- >
-
- BBEdit 3.0's search/replace facility is scriptable and should work in this case.
-
- -tre
-
- ---
- Tom Emerson Software Engineer
- Development Tools Group Symantec Corporation
- tree@bedford.symantec.com
- "I dreamed I had to take a test, in a Dairy Queen, on another planet."
- =========================================================================
- Date: Wed, 3 Aug 1994 14:51:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matt Stevens <matt@TRIBE.TRIBE.COM>
- Subject: Error Number please...
-
- Could somebody please email me the text explanation of error number -20013,
- I'm out of the office until Monday so I can't look anything up. Thanks!
- --
- matt
- =========================================================================
- Date: Wed, 3 Aug 1994 18:02:13 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <anbrown@HUSC9.HARVARD.EDU>
- Subject: fm pro printing
-
- can anyone out there tell me what I am doing wrong?
- I am trying to send fmpro a the print command from a script.
-
- this is what I am using:
-
- set temp to my currentRecordNumber as integer
- tell application "filemaker pro"
- print record temp
- end tell
-
- this goes to the print dialog box, and after I press the return button, I
- get an error -1700 which is cant make some data into the expected type.
-
- What am I doing wrong?
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphin's Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Wed, 3 Aug 1994 16:39:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Some answers for [Re: More on Frontier & TCP/IP]
-
- >>There are two better ways:
- >>
- >>First, in your loop, you could repeat while (connection status of (tcp
- >> status stream <yourstream> ) = Connected
- >
- >
- >It seems to me that I played around with this, but in Frontier you
- >don't get "Connected", but rather a binary value. While I'm sure
- >that value could be interpreted bit-wise to recover the necessary
- >status info, I haven't had a chance to dig deeper. (My memory
- >of this is hazy now, but I *think* this was how it worked.)
-
- If you capture one of these, and let us know what the binary type is (the
- code in [....] after the binary in the Kind column of the table holding the
- value) and perhaps its contents
- clipboard.putValue (string (theCellHoldingTheValue))
- will copy it to the clipboard, we can probably figure out what it is.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 3 Aug 1994 20:06:40 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shaddar@AOL.COM
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- Meanwhile, back to the original topic of this thread, does anyone else know
- of any way to restart with extensions off without moving them out of the
- extensions folder or renaming it? From what I've seen, restarting with
- extensions off is different from emptying your extensions folder, it seems to
- leave some vital processes running.
-
- ~Shaddar
- =========================================================================
- Date: Wed, 3 Aug 1994 17:48:32 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Clasen <cmdesign@NETCOM.COM>
- Subject: Creating Drag and drop Applets
-
- I have been trying to create a drag and drop applet which will mount a
- volume, copy the folder dropped on the applet, and then unmount the volume.
- >
- Its not working very well. Any suggestions? I greatly appreciate the lists
- help.
- Problems with the duplicate folder command and then the put away disk, when
- it works, puts away the volume too fast. I am trying to use copydoubler to
- copy files faster and the app is left hanging after the process is started.
- Thanks in advance.
- >
- >on open FolderName
- > set FolderToCopy to FolderName as string
- > copy (list disks) to DiskList
- >
- > if DiskList does not contain "MacDrop" then
- > tell application "Finder"
- > open alias "MACsmac:Aliases:MacDrop alias"
- > end tell
- > copy (list disks) to DiskList
- > if DiskList does not contain "MacDrop" then
- > display dialog "That volume does not seem to be
- >available right now!" & return & "Hmmmmm..."
- >
- > else if DiskList contains "MacDrop" then
- > tell application "Finder"
- > duplicate folder FolderName to folder
- >"MacDrop" of disk "CMd Portable 170"
- > put away disk "MacDrop"
- > end tell
- > end if
- > end if
- > beep
- >end open
- >
-
- suggestions
-
- -------
- Michael A. Clasen | Voice - 1-415-703-8736
- Clement Mok Design | Fax - 1-415-703-9901
- 600 Townsend St. | Internet: cmdesign@netcom.com
- -------------------------------------------------
- Play for me, oh sweetest lute and lift away all strife
- Ply for me to celebrate the joyousness of life
- MP-C --1994
- =========================================================================
- Date: Wed, 3 Aug 1994 18:05:31 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dennis Birch <fja04@HALCYON.COM>
- Subject: Where to get Scriptable Finder
-
- I've seen many references to the Scriptable Finder on this list, some of
- which have stated that it is readily available. Where might that be? I'm
- ready to try some things that require scripting the Finder, so I'd like to
- get my hands on it. What other System requirements are there for working
- with it?
- =========================================================================
- Date: Wed, 3 Aug 1994 18:05:34 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dennis Birch <fja04@HALCYON.COM>
- Subject: gaea ftp error
-
- I have a problem logging onto the gaea ftp server, and I'm wondering if
- anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
- a logon, I get an error dialog that tells me: "Server response: Can't
- create data socket (129.237.140.40,20): Interrupted system call." When I
- dismiss the dialog, I can't get any further.
-
- This may be related to having upgraded our office to a 56K line, because I
- know I have logged onto gaea successfully from home via PPP access.
-
- So, any clues?
- =========================================================================
- Date: Wed, 3 Aug 1994 19:19:40 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: gaea ftp error
-
- >I have a problem logging onto the gaea ftp server, and I'm wondering if
- >anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
- >a logon, I get an error dialog that tells me: "Server response: Can't
- >create data socket (129.237.140.40,20): Interrupted system call." When I
- >dismiss the dialog, I can't get any further.
-
- I got the same error this morning, trying to ftp from a unix shell.
-
- Definitely a problem with the ftp server at gaea.
-
- -Dave
-
- ------------------------------------------------------------------------------
- David Ray Dream Designs Music Composition
- daver@netcom.com PO Box 5631 Interactive Multimedia
- 510-527-9010 Berkeley CA 94705 Virtual Worlds
- =========================================================================
- Date: Wed, 3 Aug 1994 22:12:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: gaea ftp error
- In-Reply-To: Your message of "Wed, 03 Aug 94 18:05:34 PDT"
-
- >I have a problem logging onto the gaea ftp server, and I'm wondering if
- >anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
- >a logon, I get an error dialog that tells me: "Server response: Can't
- >create data socket (129.237.140.40,20): Interrupted system call." When I
- >dismiss the dialog, I can't get any further.
- >
- >This may be related to having upgraded our office to a 56K line, because I
- >know I have logged onto gaea successfully from home via PPP access.
-
- No, the problem is gaea. I haven't figured out what causes this yet. I
- will let the sys admin know there's a problem.
-
- pf
-
- BTW, did you try using Anarchie or the ftp option in telnet. I saw
- a message earlier today, but when I attempted to log in, I didn't
- have any problems.
- =========================================================================
- Date: Wed, 3 Aug 1994 20:47:49 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- >Meanwhile, back to the original topic of this thread, does anyone else know
- >of any way to restart with extensions off without moving them out of the
- >extensions folder or renaming it? From what I've seen, restarting with
- >extensions off is different from emptying your extensions folder, it seems to
- >leave some vital processes running.
-
- There are extensions in more places than the Extensions folder. Loose in
- the System folder; in the Control Panels folder (not sure about Apple Menu
- Items). There are also extension-like-things which are immune to the
- shift-key startup, such as the Enabler needed by your machine...they go
- away if you empty the Extensions folder (or rename it). And don't forget
- to empty the Startup Items folder, unless you have something in there you
- want to have start up.
-
- So it is no easy task to manually produce the shift-key-startup effect.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 3 Aug 1994 23:20:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: My folder and file processor
-
- >From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- >
- >As Jon Pugh, the author of Jon's Commands, has confirmed, the "walk
- >folders" command does not work in all instances. I started out trying to
- >use his command for my MacPGP scripts. As I remember, with the "walk
- >folder" command you cannot access a global variable from within script you
- >are processing the files or folders with.
-
- While there's some truth to the statement "the 'walk folders' command does
- not work in all instances , I don't really use globals, so I haven't
- bothered figuring out how to do it. My common solution is to pass
- variables into the script I before I feed it to "walk folders", like so:
-
- on script foo
- prop bar : ""
- on open
- -- ...
- return bar
- end
- end
-
- set s to foo -- copy the script into a variable
- set foo's bar to gonzo -- set the property to whatever
- set gonzo to walk folders with script foo -- use the script object
- -- now gonzo contains bar
-
- There are probably a bunch of ways to hook these scripts together. I'm
- sure you can also string the scripts together by using "parent : me"
- somewhere in there, but I'm not sure of the syntax and don't have the time
- to pay around with it right now. I'm sure someone else can fill in. It
- should be documented in the Language Guide.
-
- Jon
- =========================================================================
- Date: Thu, 4 Aug 1994 12:28:28 EETDST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI>
- Subject: Sender's address
- In-Reply-To: <9408040821.AA09171@smtp.tele.fi>; from "Automatic digest
- processor" at Aug 4, 94 12:00 am
-
- How do I get the address of the application who sent the event to my script?
-
- I know "return" will return a AE reply to the sender, but how can I send
- other events to the client program afterwards? I can't find any mention
- about it... not in FAQ, not in a couple of months reading this listserv...
-
- Thanks in advance - I hope my question is not too trivial...otherwise
- I must be blind.
-
- tloimune@denethor.th.tele.fi
-
- - Loimu
- =========================================================================
- Date: Thu, 4 Aug 1994 08:30:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Dowling <cdowling@FACSTAFF.WISC.EDU>
- Subject: Grabbing hardware info?
-
- Is there an AS command or osax that can grab hardware information, e.g.,
- ROM version or serial # of internal hard disk? I want to use this info as
- a variable then copy software to a particular machine or class of machine.
- Chris
- ~~~~
- Chris Dowling, Manager, SOE Computer Lab,
- 1025 W. Johnson St., Madison, WI 53706, (608) 263-4339
- cdowling@facstaff.wisc.edu
- ~~~~
- =========================================================================
- Date: Thu, 4 Aug 1994 09:38:21 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: tom price <price@LL.MIT.EDU>
- Subject: Need General Info
-
- I have been lurking for quite a while and just got around to really beginning
- to script with a copy of Frontier v2.0 that I have had around.
-
- First, where can I ftp the public domain software or get a list of available
- files? I made a request to the listserver for frontier index and it told me it
- wasn't available. I suspect that I have just lost track of new directories.
-
- Second, I wanted to be able to use Frontier to script the application
- KaleidaGraph which is IAC aware. In reading the manual I discovered that I
- need an install script for frontier that will give me the hooks to the iac
- commands in the application. Is such an install script available? Does version
- 3 of Frontier require these same install scripts?
-
- Thanks for any help
-
- Tom Price
- MIT Lincoln Lab
- price@ll.mit.edu
- =========================================================================
- Date: Thu, 4 Aug 1994 09:57:43 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Re: Some answers for [Re: More on Frontier & TCP/IP]
-
- >>>There are two better ways:
- >>>
- >>>First, in your loop, you could repeat while (connection status of (tcp
- >>> status stream <yourstream> ) = Connected
- >>
- >>
- >>It seems to me that I played around with this, but in Frontier you
- >>don't get "Connected", but rather a binary value. While I'm sure
- >>that value could be interpreted bit-wise to recover the necessary
- >>status info, I haven't had a chance to dig deeper. (My memory
- >>of this is hazy now, but I *think* this was how it worked.)
- >
- >If you capture one of these, and let us know what the binary type is (the
- >code in [....] after the binary in the Kind column of the table holding the
- >value) and perhaps its contents
- > clipboard.putValue (string (theCellHoldingTheValue))
- >will copy it to the clipboard, we can probably figure out what it is.
- >
- > --John
-
-
- John:
-
- I didn't know there were binary "types". Is there any information on
- what each type is? Let me verify that this was how the osax actually worked,
- and then I would be curious to see how you deconstruct it. Thanks.
-
- -David.
-
-
- ____________________________________________________
-
- David C. Myers
- myers@acec.com
- =========================================================================
- Date: Thu, 4 Aug 1994 10:11:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Emerson <tree@BEDFORD.SYMANTEC.COM>
- Subject: Re: Need General Info
-
- At 9:38 8/4/94 -0400, tom price wrote:
- [snip]
- >Second, I wanted to be able to use Frontier to script the application
- >KaleidaGraph which is IAC aware. In reading the manual I discovered that I
- >need an install script for frontier that will give me the hooks to the iac
- >commands in the application. Is such an install script available? Does version
- >3 of Frontier require these same install scripts?
-
- The KaleidaGraph installation may contain an installer file for Frontier
- that will add the appropriate verbs to the table, or such a beast may be
- available from the company - call their tech support if you can't find it
- in your installation.
-
- Frontier 3.0 will require the same thing. Now, what we really need is a
- hack to take an 'aete' and munge it into a set of verbs.
-
- -tre
-
- ---
- Tom Emerson Software Engineer
- Development Tools Group Symantec Corporation
- tree@bedford.symantec.com
- "I dreamed I had to take a test, in a Dairy Queen, on another planet."
- =========================================================================
- Date: Thu, 4 Aug 1994 11:11:19 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Israel Alvarez <Montressor@AOL.COM>
- Subject: FaceSpan and AppleScript Developer's Kit 1.1
-
- I'm curious - am I just one of the few who have the AppleScript Developer's
- Kit? I just bought v1.1 at the MacWorld show, and along with some great docs,
- a scriptable finder, and a CD of examples and info, it has a killer
- application called FaceSpan. FaceSpan is an interface builder for
- AppleScript. In practice, this means it's like HyperCard for AppleScript. It
- gives you easy access to all of the Mac's interface elemsnts, including lists
- and popup menus. This is one of the coolest things I've seen in a long time.
- Best of all, the Dev Kit includes a license for redistribution of the
- FaceSpan Extension, which lets you create little standalones that can be run
- by anyone with the Extension installed. Overhead is about 30-40k. Otherwise,
- you can create full standalone apps, though the apps are significantly larger
- (in a test, a mini-app was 32k, while the full app was 284k). Full apps only
- require AppleScript installed to run.
-
- At any rate, I'm curious if anyone else has heard of this app, or has the
- developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
-
- Mont
- =========================================================================
- Date: Thu, 4 Aug 1994 11:26:55 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joseph Block <jpb@GATE.NET>
- Subject: Resource Editing osax
-
- Does anyone know of an osax that will allow me to manipulate
- resources? I need to be able to create an arbitrary type & id.
-
- I want to write a drop script to automatically add Fetch keys to
- graphics files, and need to manipulate the keyword and description
- resources.
-
- Thanks,
-
- jpb@gate.net
- =========================================================================
- Date: Thu, 4 Aug 1994 09:02:15 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Sender's address
-
- >How do I get the address of the application who sent the event to my script?
- >
- >I know "return" will return a AE reply to the sender, but how can I send
- >other events to the client program afterwards? I can't find any mention
- >about it... not in FAQ, not in a couple of months reading this listserv...
-
- I can't think of a way to do this. I'll be happy to be educated. In real
- code, it is trivial (there is an attribute one can extract from either the
- incoming event or the reply, in an AE Handler function which contains what
- is needed). But that's not accessible to a script. Nor does it seem
- possible to pass it along to an osax. Nor is there AppleScript syntax to
- do the job of "telling" the decided-at-runtime application anything.
-
- I'd suggest an alternate approach: a receiving script application specific
- to a given sender application.
-
- Or switch to Frontier, where a handler for a custom event can dig the
- address attribute out of the incoming event, and keep it around for later
- use.
-
- --John (who does tech support for UserLand, but speaks for himself above)
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 4 Aug 1994 09:02:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Grabbing hardware info?
-
- >Is there an AS command or osax that can grab hardware information, e.g.,
- >ROM version or serial # of internal hard disk? I want to use this info as
- >a variable then copy software to a particular machine or class of machine.
- >Chris
-
- Anything which can be learned using the Gestalt system call (which doesn't
- include a serial # of an internal disk, so far as I know) can be done in
- AppleScript, either with a suitable Scripting Addition, or with a command
- built into the Scriptable Finder.
-
- In the Jons Commands osax (a good choice) the argument-less command
-
- machine environment
-
- returns a likely collection of stuff:
-
- {machine type:"Power Macintosh 8100/80",
- CPU type:"68020",
- System version:7.12,
- FPU:false,
- Color Quickdraw:true,
- Data Access Manager:false,
- software power off:true,
- logical RAM:21225472,
- physical RAM:16777216,
- active scripts:1,
- AppleTalk version:58,
- keyboard:"Extended ADB Keyboard",
- virtual memory:true}
-
- You can also call any particular Gestalt "selector", provided you know what
- to do with the result:
-
- machine environment "ascr"
-
- returns 3 on my machine: a couple of bit flags describing AppleScript
- features available.
-
- With Scriptable Finder, the
-
- [get] computer
-
- command does about the same thing...bit testing is provided too.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 4 Aug 1994 09:09:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Need General Info
-
- >I have been lurking for quite a while and just got around to really beginning
- >to script with a copy of Frontier v2.0 that I have had around.
- >
- >First, where can I ftp the public domain software or get a list of available
- >files? I made a request to the listserver for frontier index and it told me it
- >wasn't available. I suspect that I have just lost track of new directories.
-
- The ftp site is
-
- gaea.kgs.ukans.edu
-
- in the directory /frontier
-
-
- >Second, I wanted to be able to use Frontier to script the application
- >KaleidaGraph which is IAC aware. In reading the manual I discovered that I
- >need an install script for frontier that will give me the hooks to the iac
- >commands in the application. Is such an install script available? Does version
- >3 of Frontier require these same install scripts?
-
- I don't know of an install file for KaleidaGraph...that doesn't mean there
- isn't one around. Frontier can help you build one, if KaleidaGraph is
- "scriptable" in Apple's limited meaning of the term (it has an 'aete'
- resource). The Commercial Developers Suite has a parser which reads the
- 'aete' and builds the beginning of the glue table (same table as is
- installed by an install file) for you.
-
- Then, it is usually necessary to go back and tune that up, to reflect the
- reality of the application's supported events, as opposed to the story told
- in the 'aete'. Disturbingly often, the 'aete' representation describes
- events different from what the application provides. Also, you may want to
- write custom glue which hides details.
-
- Frontier 3.0 does this job much better than 2.0 did, and adds many other
- enhancements. I've sent you private mail about that, to avoid a
- "commercial" here.
-
- --John
-
-
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Thu, 4 Aug 1994 09:12:31 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Need General Info
-
- >At 9:38 8/4/94 -0400, tom price wrote:
- >[snip]
- >>Second, I wanted to be able to use Frontier to script the application
- >>KaleidaGraph which is IAC aware. In reading the manual I discovered that I
- >>need an install script for frontier that will give me the hooks to the iac
- >>commands in the application. Is such an install script available? Does
- >>version
- >>3 of Frontier require these same install scripts?
- >
- >The KaleidaGraph installation may contain an installer file for Frontier
- >that will add the appropriate verbs to the table, or such a beast may be
- >available from the company - call their tech support if you can't find it
- >in your installation.
- >
- >Frontier 3.0 will require the same thing. Now, what we really need is a
- >hack to take an 'aete' and munge it into a set of verbs.
-
- It's there, supplied with Frontier 3.0 (an earlier, less good, version came
- with Frontier 2.0). It's the Commercial Developer's Suite (on Disk 2).
-
- The record and list handling and optional handler parameters added to the
- UserTalk language in 3.0 made this much easier to do, and the 'aete' parser
- was extensively retooled as a part of that.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 4 Aug 1994 09:16:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- >I'm curious - am I just one of the few who have the AppleScript Developer's
- >Kit? I just bought v1.1 at the MacWorld show, and along with some great docs,
- >a scriptable finder, and a CD of examples and info, it has a killer
- >application called FaceSpan. FaceSpan is an interface builder for
- >AppleScript. In practice, this means it's like HyperCard for AppleScript. It
- >gives you easy access to all of the Mac's interface elemsnts, including lists
- >and popup menus. This is one of the coolest things I've seen in a long time.
- >Best of all, the Dev Kit includes a license for redistribution of the
- >FaceSpan Extension, which lets you create little standalones that can be run
- >by anyone with the Extension installed. Overhead is about 30-40k. Otherwise,
- >you can create full standalone apps, though the apps are significantly larger
- >(in a test, a mini-app was 32k, while the full app was 284k). Full apps only
- >require AppleScript installed to run.
- >
- >At any rate, I'm curious if anyone else has heard of this app, or has the
- >developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
-
- Many of us on the list (including me) have FaceSpan (actually, I have it
- under its first public name: FrontMost). I anxiously await the next major
- version upgrade, but it is very nice as is. It is also available in the
- AppleScript Scripter's Kit, Apple's retail product.
-
- One problem with the current FaceSpan: there is a large memory leak every
- time a FaceSpan freestanding application starts up and is quit. (200K or
- so).
-
- There is a much smaller leak each time one of the mini-apps (the ones
- needing the runtime extension) starts and quits.
-
- The workaround is: if it hurts, don't do it. That is...don't plan on
- starting one of these things up over and over...start it and leave it
- running.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 4 Aug 1994 09:22:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- At 11:11 8/4/94 -0400, Israel Alvarez wrote:
- >I'm curious - am I just one of the few who have the AppleScript Developer's
- >Kit?
-
- Yes, though by the end of the day the number should be increased by one (we
- placed the PO with Apple on thursday, and I've been sitting on pins and
- needles waiting for the damned package).
-
- >At any rate, I'm curious if anyone else has heard of this app, or has the
- >developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
-
- Heard of it, used it to justify the spending of $199 (the price has gone up
- :) ), rather than the $30 a book and AS 1.1 would cost.
-
- I think the reason you might find relatively few people have it is, well,
- because it costs a lot. Unless you're going to be doing something rather
- fancy with AppleScript (and really, there's so few people doing *anything*
- with AS at the moment, that it's a fairly small number that does something
- really cool :) ), and can find a kind person in your company who's willing
- to buy it for you, most people probably will choose not to get it.
-
- Then again, I may be showing my lack of familiarity with the niche AS has
- found -- are most people using it for private applications, or business
- applications? I'm using it for both, though most of the time is spent
- hacking it for my private pleasure (though it helps my company) ...
-
- -roy
- =========================================================================
- Date: Thu, 4 Aug 1994 10:19:32 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dennis Birch <fja04@HALCYON.COM>
- Subject: Re: gaea ftp error
-
- >>I have a problem logging onto the gaea ftp server, and I'm wondering if
- >>anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
- >>a logon, I get an error dialog that tells me: "Server response: Can't
- >>create data socket (129.237.140.40,20): Interrupted system call." When I
- >>dismiss the dialog, I can't get any further.
-
- >No, the problem is gaea. I haven't figured out what causes this yet. I
- >will let the sys admin know there's a problem.
- >
- >pf
- >
- >BTW, did you try using Anarchie or the ftp option in telnet. I saw
- >a message earlier today, but when I attempted to log in, I didn't
- >have any problems.
-
- I tried Anarchie without luck, and I still haven't quite figured out how to
- do an ftp session with Telnet. I also tried from home last night and
- discovered that I couldn't do it via PPP now, either. I hope you can get
- through to the administrator!
-
- -- Dennis
- =========================================================================
- Date: Thu, 4 Aug 1994 11:19:14 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- At 09:22 8/4/94 -0800, Roy S. Rapoport wrote:
- >Then again, I may be showing my lack of familiarity with the niche AS has
- >found -- are most people using it for private applications, or business
- >applications? I'm using it for both, though most of the time is spent
- >hacking it for my private pleasure (though it helps my company) ...
-
- Most of the "heavy" uses of scripting (whether AppleScript or Frontier or
- ...) so far seem to be hidden inside organizations. Certainly the
- scripting (AS or Frontier) of QuarkXPress are in-house. Entire newspaper
- classified sections are being prepared that way, large catalogs, telephone
- yellow pages, etc. Not the sort of script that will find its way onto
- gaea, in general.) [I only hear about some of the Frontier uses like this
- (the ones which at some point need technical support), not the AppleScript
- ones, so I may be wrong about the mix, which I think still is more Frontier
- than AS: these are BIG script collections, and debugging is nice, and
- Frontier was out first.]
-
- --John (speaking for himself)
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Thu, 4 Aug 1994 15:00:19 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Value Lists in FMPro via AS
-
- >Does anyone out there know how to access the value list of a FMPro field
- >using AppleScript?
-
- If I understand the question correctly, you want to get the cellvalue
- property of a particular cell (for a single record) or for a field (for that
- field in all records). Here are a couple of examples that return list
- values:
-
- cellValue of every Cell of Record 1 -- list
-
- cellValue of Cell 1 of every Record
-
- Danny Goodman
- =========================================================================
- Date: Thu, 4 Aug 1994 15:03:03 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: What is FrontMost
-
- >And where can I get it?
-
- Frontmost was the original name for FaceSpan, a user interface builder for
- AppleScript scripts. It's tres cool, and is bundled with the AppleScript
- Scripters Kit (retail product from Apple) or the AppleScript Developers Kit
- (from APDA only).
-
- Danny Goodman
- =========================================================================
- Date: Thu, 4 Aug 1994 15:07:20 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Where to get Scriptable Finder
-
- >I've seen many references to the Scriptable Finder on this list, some of
- >which have stated that it is readily available. Where might that be?
-
- "Readily available" might be stretching it. As far as I know, it's available
- only on the AppleScript Developer Kit CD from APDA. It will, however, be
- bundled with System 7.5 for all.
-
- Danny Goodman
- =========================================================================
- Date: Thu, 4 Aug 1994 15:18:29 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shaddar@AOL.COM
- Subject: Re: Where to get Scriptable Finder
-
- >I've seen many references to the Scriptable Finder on this list, some of
- >which have stated that it is readily available. Where might that be? I'm
- >ready to try some things that require scripting the Finder, so I'd like to
- >get my hands on it. What other System requirements are there for working
- >with it?
-
- I believe you can buy it from APDA, but if you're willing to wait a month,
- System 7.5 will include it and you'll probably end up buying that or getting
- it for free anyway.
-
- ~Shaddar
- =========================================================================
- Date: Thu, 4 Aug 1994 15:21:46 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- >Many of us on the list (including me) have FaceSpan (actually, I have it
- >under its first public name: FrontMost). I anxiously await the next major
- >version upgrade, but it is very nice as is.
-
- I too obtained the Interface builder in its Frontmost incarnation as part
- of the AS Scripter's Kit. Recent communication from Uncle Dave of SDU (the
- developers of FaceSpan) indicated that the upgrade should be available
- "soon." I've heard rumors that it is currently in beta; anyone can confirm
- this?
-
- >One problem with the current FaceSpan: there is a large memory leak every
- >time a FaceSpan freestanding application starts up and is quit. (200K or
- >so).
- >
- >There is a much smaller leak each time one of the mini-apps (the ones
- >needing the runtime extension) starts and quits.
-
- Yes, the memory leak was a major bug, but it is not the only one--other
- bugs involve the use of windoids, metas in lists, etc. The initial version
- was very buggy indeed!
-
- Lee.
-
-
-
- Lee K. Hoong
- Emory University
- Atlanta, GA 30322
- Internet: lhoong@unix.cc.emory.edu
- AOL: LHOONG
- ==========================
- Opinions and comments expressed are mine; I do not represent Emory
- University.
- =========================================================================
- Date: Thu, 4 Aug 1994 11:55:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jamie Lawrence <jamiel@SYBASE.COM>
- Subject: Finding which OSAXen are used in a script(Was: Re: How does AS
- know which osax to use?)
-
- >the other machines, but I'd love to find a way to find which osaxen a
- >script is using.
-
- I don't know that there is a way to do that, but one trick
- I have found useful in fuguring it out is to change the Applescript
- formatting in the script editor to either color or change the font
- of the appropriate terms. (I don't have AS here, and can't remember
- the exact method of doing this, so futz around some) Only a partial
- solution, but it has helped me... YMMV
-
-
- -j
- --
- "Blah Blah Blah"
- ___________________________________________________________________
- Jamie Lawrence <jamiel@sybase.com>
- =========================================================================
- Date: Thu, 4 Aug 1994 15:58:23 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Fletcher, Chuck" <fletcher_chuck@JPMORGAN.COM>
- Subject: A nice big fat project
-
- Hi,
-
- My name is Chuck Fletcher. As a manager of about 70 800's and 8100's with
- rollouts of new software and services every other day, I have been thinking
- alot about developing an software management system based on applescript and
- filemaker pro. The basic idea is to simulate gracelan(too expensive), and add
- some other features too.
-
- Goals
- 1. remote inventory of mac hardware, software and services(tcpip addresses,
- mainframe userids, etc.)
- 2. remote installs and upgrades
- 3. filemaker pro log of all activity
- 4. remote shutdown of all macs at a certain time, with auto saving features. ie
- untitled files put in a folder called "saved files" on the desktop.
- 5. remote automatic maintance(ie remote maintaince-rebuilding the desktop and
- running nortons once a month)
- 6. Frontmost interface for selecting which macs and times of exection.
- 7. Release as a public domain application and remote agent.
-
- If anyone would like to help, please email me.
-
- chuck_fletcher@jpmorgan.com
- =========================================================================
- Date: Thu, 4 Aug 1994 13:33:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Patrick S. Kammermeyer" <pkammer@EIS.CALSTATE.EDU>
- Subject: Re: A nice big fat project
- In-Reply-To: <199408042001.NAA20393@eis.calstate.edu>
-
- Have you seen Radar 4.0? It does most of what you are talking about for
- less money than GraceLan.
-
- On Thu, 4 Aug 1994, Fletcher, Chuck wrote:
-
- > Hi,
- >
- > My name is Chuck Fletcher. As a manager of about 70 800's and 8100's with
- > rollouts of new software and services every other day, I have been thinking
- > alot about developing an software management system based on applescript and
- > filemaker pro. The basic idea is to simulate gracelan(too expensive), and add
- > some other features too.
- >
- > Goals
- > 1. remote inventory of mac hardware, software and services(tcpip addresses,
- > mainframe userids, etc.)
- > 2. remote installs and upgrades
- > 3. filemaker pro log of all activity
- > 4. remote shutdown of all macs at a certain time, with auto saving features.
- ie
- > untitled files put in a folder called "saved files" on the desktop.
- > 5. remote automatic maintance(ie remote maintaince-rebuilding the desktop and
- > running nortons once a month)
- > 6. Frontmost interface for selecting which macs and times of exection.
- > 7. Release as a public domain application and remote agent.
- >
- > If anyone would like to help, please email me.
- >
- > chuck_fletcher@jpmorgan.com
- >
- =========================================================================
- Date: Thu, 4 Aug 1994 15:06:00 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith =?iso-8859-1?Q?Kert=E9sz?= SUCHARD <suchard@CNAM.FR>
- Subject: Re: Sender's address
-
- >How do I get the address of the application who sent the event to my script=
- ?
-
- in hyperCard (even 2.1) there is a message (hypertalk):
- appleEvent theClass, theId, theSender
-
- on appleEvent cl,id,Sender
- answer Sender
- -- of if Sender is -- then --
- end appleEvent
-
- In appleScript, I do not know, but someware should be there too, because
- it is in the appleEvent received. But I think you have to ask for it, becaus=
- e,
- it is retained by the appleScript component.
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kert=E9sz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simplicit=E9, c'est le fruit d'un long effort"
- =========================================================================
- Date: Thu, 4 Aug 1994 15:41:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: A nice big fat project
- In-Reply-To: Your message of "Thu, 04 Aug 94 13:33:05 PDT"
-
- >Have you seen Radar 4.0? It does most of what you are talking about for
- >less money than GraceLan.
-
- And I was told about 6 months ago that a future version would be scriptable.
-
- pf
- =========================================================================
- Date: Thu, 4 Aug 1994 17:25:36 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re: Where to get Scriptable Finder
-
- >>I've seen many references to the Scriptable Finder on this list, some of
- >>which have stated that it is readily available. Where might that be?
- >
- >"Readily available" might be stretching it. As far as I know, it's available
- >only on the AppleScript Developer Kit CD from APDA. It will, however, be
- >bundled with System 7.5 for all.
-
- I bought the Finder Scripting Toolkit from APDA for about $25. It includes
- the scriptable Finder and documentation. Sorry, I don't recall the product
- number. Call APDA and ask for the product by name.
-
- Lee.
-
- Lee K. Hoong
- Emory University
- Atlanta, GA 30322
- Internet: lhoong@unix.cc.emory.edu
- AOL: LHOONG
- ==========================
- Opinions and comments expressed are mine; I do not represent Emory
- University.
- =========================================================================
- Date: Thu, 4 Aug 1994 17:33:02 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: strip leading
-
- Is there an existing easy way to strip leading characters from a string
- (I've got some mainframe output wit 00's padding out the beggining of
- numeric fields) or do I have to use a couple of osaxen and get the find
- out if there is a 0 at an offset of 1 and then delete each one until the
- offset tests false?
-
- Boy, it's hard to keep track of the commands in all those osaxen.
-
- Barry
- =========================================================================
- Date: Thu, 4 Aug 1994 16:43:53 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Where to get Scriptable Finder
- In-Reply-To: Your message of "Thu, 04 Aug 94 17:25:36 EDT"
-
- >I bought the Finder Scripting Toolkit from APDA for about $25. It includes
- >the scriptable Finder and documentation. Sorry, I don't recall the product
- >number. Call APDA and ask for the product by name.
-
- I think the number is R0573Z/A. APDA's number is 800.282.2732.
-
- pf
- =========================================================================
- Date: Thu, 4 Aug 1994 15:10:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: strip leading
-
- >Is there an existing easy way to strip leading characters from a string
- >(I've got some mainframe output wit 00's padding out the beggining of
- >numeric fields) or do I have to use a couple of osaxen and get the find
- >out if there is a 0 at an offset of 1 and then delete each one until the
- >offset tests false?
- >
- >Boy, it's hard to keep track of the commands in all those osaxen.
- >
- >Barry
-
- If you use Frontier Runtime as has been described in the list, the command
- is string.popLeading. Its usage is
-
- string.popLeading ("*****$33.33", '*')
- =BB $33.33
- string.popLeading ("###34.23#", '#')
- =BB 34.23#
- Note that it leaves the ending pound sign in place; only leading characters
- are removed.
-
- string.popLeading ("No leading characters here!", '#')
- =BB No leading characters here!
- No leading characters found, so the string is returned unchanged.
-
- David
-
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Fri, 5 Aug 1994 10:17:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- Israel Alvarez <Montressor@AOL.COM> writes:
-
- >...it has a killer
- >application called FaceSpan. FaceSpan is an interface builder for
- >AppleScript.
-
- It was originally called Frontmost (no capital M, as far as I'm aware).
- Incidentally, I found out about the name change at WWDC, and I was able to
- collar a couple of Software Designs people to ask them why they had to change
- the name. The answer was, "Frontmost" was too similar to the name of another
- product. Which product was that? I asked. "Frontier", they replied.
-
- Now, really...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Fri, 5 Aug 1994 10:23:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Sender's address
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >>How do I get the address of the application who sent the event to my script?
- >
- >I can't think of a way to do this. I'll be happy to be educated. In real
- >code, it is trivial (there is an attribute one can extract from either the
- >incoming event or the reply, in an AE Handler function which contains what
- >is needed). But that's not accessible to a script. Nor does it seem
- >possible to pass it along to an osax. Nor is there AppleScript syntax to
- >do the job of "telling" the decided-at-runtime application anything.
-
- Just a thought: my AppleEvent utilities for HyperCard include an XFCN called
- AEGetTheCurrentEvent, which calls the AppleEvent Manager routine of the same
- name. With current versions of HyperCard, you can call this from within an
- "On AppleEvent" handler, and get a complete copy of the current event this way.
-
- My idea is: would a similar thing work from AppleScript as well? If you had
- an osax that called AEGetTheCurrentEvent, and you invoked this from within
- a script handler, would you get a copy of the event currently being handled?
-
- Yeah, sure, I could probably write it first, and then find out whether it works,
- but you know what us lazy programmers are like... :-)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 4 Aug 1994 17:42:10 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Eudora Sorter
-
- I wrote a script that works with Eudora 1.4.2 and sorts the new incoming
- mail and moves it to a different mailbox if certain criteria are met (at
- this point it just checks the "to: and "cc:" fields - great for keeping
- your mailing lists from clogging up your in box). It runs via the Eudora
- notifier feature.
-
- I have a couple of questions -
-
- If I have Eudora notify the script (saved as an app) directly it runs the
- app in the foreground. As of now I wrote another program (a simple launcher
- app in C) that takes the notification event and launches the script in the
- background. I would like to eliminate the launcher app to simplify things
- but I have yet to figure out how to get the script to launch and run in the
- background automatically.
-
- I would like to have the script check a data file to set its search
- criteria instead of having to change and recompile the script every time I
- want to add or change something that it looks for. Is this possible? Right
- now I just have two lists at the front of the script that contain the
- search criteria and the mailbox to move the item to if the search criteria
- is met. If I can set up sometype of external data file would that cause a
- big performance hit?
-
- I just joined the list so excuse me if I'm asking something that has just
- been covered.
-
- Best-
-
- Greg
-
-
- ----------------------------------------------------------------------------
- Greg Hiner (512) 471-7134 ext.82
- Computer Support hiner@mail.utexas.edu
- Garrison Hall 318
- University of Texas at Austin
- Austin, TX 78712
- =========================================================================
- Date: Thu, 4 Aug 1994 16:14:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Index of OSAXEN
-
- Having suddenly realized that I had somewhere around 80 OSAXEN in my
- Scripting Additions folder, and that it was actually slowing me down
- without any reasonable utility (having the Audio CD OSAXEN, as cool as they
- are, is sort of useless if my PowerCD is not connected to my Mac currently,
- no?), I'm on a drive to minimize the number of OSAXEN I keep in Extensions.
-
- The problem is that I have no idea which I am using now and which I am not.
- Basically, I need to
-
- A) Find all the commands which the OSAXEN give me, and use it to determine
- which I need. This would be nice because it would also give me a
- 'complete' dictionary
-
- B) Find out (the hard way, I guess?) which OSAXEN each script needs, and
- indicate it in the body of the script (I think from now on I'll be
- indicating which OSAXEN are necessary for a script's function as a matter
- of habit.
-
- Now, how do I do this? I am somewhat reluctant to do an 'Open Dictionary'
- in Script Editor for each OSAX. Script Editor is not scriptable either,
- unfortunately, so I seem to be screwed.
-
- Is there any other way to extract commands from OSAXEN?
-
- -roy
- =========================================================================
- Date: Fri, 5 Aug 1994 00:13:11 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Index of OSAXEN
- In-Reply-To: <no.id> from "Roy S. Rapoport" at Aug 4, 94 04:14:08 pm
-
- --Roy S. Rapoport wrote:
- >
- >Now, how do I do this? I am somewhat reluctant to do an 'Open Dictionary'
- >in Script Editor for each OSAX. Script Editor is not scriptable either,
- >unfortunately, so I seem to be screwed.
-
- Check out the ScriptWizrd demo on gaea. It has a really nice
- dictionary feature. Speaking of third party script utilities, I got a
- pretty good look at Scripter from Main Event. I wasn not impressed. I
- realize it's currently still in beta, but it has a very cluttered
- interface. It seems to be suffering from being "the AppleScript
- environment for everyone" and this is not a good thing, IMO. It does
- look like it has some very nice tools for for beginning scripters, but I
- would probably recommend beginners take a look at Script-A-File from our
- own Danny Goodman. As freeware, it's a whole lot cheaper. ;->
-
- -Hades
- =========================================================================
- Date: Thu, 4 Aug 1994 21:39:16 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Eudora scripting problem
-
- I've discovered a strange problem with the following script. This script
- checks the headers of each e-mail message in my "In" box and places it in
- another box if one of the header fields matches a given string. I use this t=
- o
- sort through my listserv mail.
- Below are two scripts. The first one works, the second one doesn't.
- Can anybody tell me why the second one doesn't work?
-
- =46irst (working) script:
-
- set rules to {{"MACSCRPT", "MacScripting List"}, {"HYPERCRD", "Hypercard"}}
- tell application "Eudora1.4.3"
- activate
- repeat with m from (count message of mailbox "in" of mail folder "") =AC
- to 1 by -1
- set theMessage to (a reference to message m of mailbox "in" of mail =AC
- folder "")
- try
- set fieldSender to field "sender" of theMessage
- set proceed to true
- on error
- set proceed to false -- message doesn't have the "sender" header
- end try
- if proceed then
- repeat with theRule in rules
- if fieldSender contains item 1 of theRule then
- set mailFolder to (a reference to mail folder "")
- move theMessage InsertHere end of mailbox (item 2 of theRule) =AC
- of mailFolder
- exit repeat
- end if
- end repeat
- end if
- end repeat
- end tell
-
-
-
- Here is the non-working script:
-
-
- set rules to {{"MACSCRPT", "MacScripting List", "sender"}, =AC
- {"HYPERCRD", "Hypercard", "sender"}}
- tell application "Eudora1.4.3"
- activate
- repeat with m from (count message of mailbox "in" of mail folder "") =AC
- to 1 by -1
- set theMessage to (a reference to message m of mailbox "in" of mail =AC
- folder "")
- try
- set fieldSender to field (item 3 of theRule) of theMessage -- This li=
- ne!
- set proceed to true
- on error
- set proceed to false -- message doesn't have the "sender" header
- end try
- if proceed then
- repeat with theRule in rules
- if fieldSender contains item 1 of theRule then
- set mailFolder to (a reference to mail folder "")
- move theMessage InsertHere end of mailbox (item 2 of theRule) =AC
- of mailFolder
- exit repeat
- end if
- end repeat
- end if
- end repeat
- end tell
-
-
- The only difference between the scripts is the line starting with
- "set fieldSender". For some reason, I can't substitute 'field "sender"' with
- a variable. Why is this????
-
- -Dave
-
- (By the way, the character =AC is supposed to be the option-return character=
- ,
- in case your e-mail system gobbles it.)
-
- ----------------------------------------------------------------------------=
- --
- David Ray Dream Designs Music Composition
- daver@netcom.com PO Box 5631 Interactive Multimedia
- 510-527-9010 Berkeley CA 94705 Virtual Worlds
- =========================================================================
- Date: Fri, 5 Aug 1994 00:59:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Eli Whitney Museum <eli@REVCO.MED.YALE.EDU>
- Subject: Scripting contest winners?
-
- I thought that the scripting contest winners were going to be announced at
- macworld expo, but i havnt heard anything about it, and havnt seen
- anything on this list about it. maybe i missed it. what's the deal?
-
- (please cc: replies to my email, as i dont read this list as throughly as
- i should, and i might miss something)
-
- thanx.
-
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- eli@revco.med.yale.edu hscf@minerva.cis.yale.edu
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Fri, 5 Aug 1994 01:08:26 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
- Subject: Re: Where to get Scriptable Finder
-
- At 3:07 PM 8/4/94, Danny Goodman wrote:
-
- >"Readily available" might be stretching it. As far as I know, it's available
- >only on the AppleScript Developer Kit CD from APDA. It will, however, be
- >bundled with System 7.5 for all.
-
- It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
- since a subscription to _Develop_ is only $30.
-
- Bob
-
- --
- Bob Snyder N2KGO MIME, RIPEM mail accepted
- snyderra@dunx1.ocs.drexel.edu finger for RIPEM public key
- When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
- =========================================================================
- Date: Fri, 5 Aug 1994 03:02:12 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Can't write new script!
-
- ACK! My AppleScript just broke in a really strange way. Everything seemed
- fine last time I tried it. Tonight, I opened a script I'd been working on,
- and copied and pasted part of it into a new window in the script editor.
- When I tried to check the syntax, I got a dialog saying "couldn't [etc.
- etc.] because I can't access the scripting system...etc."
-
- I think I'd seen this once before, and restarting cleared things up, so I
- restarted, turned of the latest extensions I'd added, opened up the text
- version of the script I'd saved and...no soap. So I set about turning off
- more and more extensions. No.
-
- Finally, I re-installed AS from the PlainTalk 1.2 disks. It _still_
- wouldn't work! Then I opened up the original script again. I said to
- myself, this must have been working when I started this session because
- opening this script caused another application involved to launch. So, I
- made some changes to the script and lo and behold it compiled and ran and
- gave me errors and everything. Trying to extract part of it into a new
- window would continue to fail every time, however.
-
- I thought it was something about the copying and pasting that was screwed.
- But then I tried just starting a new script and typing into it, and that
- gave me the same error. I'm desperate now. What the heck could this be?
- Anyone else seen this?
-
- If you have any insights, please cc the answer to me as well as the list,
- since I get the Digest and won't see it until late tomorrow night.
-
- thanks,
- Barry
- =========================================================================
- Date: Fri, 5 Aug 1994 03:08:57 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: strip leading
-
- Thanks for the info on how to do this with Frontier. That looks like just
- what I need. Unfortunately, I'm likely to be giving this to another party
- and would like to be able to make it work with AppleScript and as few
- other neccessary pieces as possible. (I'm already up to one OSAX thrown
- in.) Frontier Runtime may be one piece of software too many for their
- system, for all I know. So I'm still open for suggestions.
-
- B.
- =========================================================================
- Date: Fri, 5 Aug 1994 03:28:48 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Can't write new script! (not)
-
- Wow. ten minutes after sending that message, I solved the problem. Never
- satisfied to leave something alone, I figured that I hadn't tried just
- opening the script editor without any script or file and just start from
- scratch. Well, it still didn't work, but then I happened to look at that
- little box at the bottom of the script window where the scripting language
- is displayed. There was the little down pointing triangle, but it was
- otherwise blank. I clicked on it, and some choices showed up, I chose
- AppleScript and everything was happy again.
-
- I'm guessing that somehow, because I had just tried out Frontier Runtime
- but was no longer running it, there was a blank choice selected as the
- default scripting language. Doesn't seem right, but it's just a guess
- anyway.
-
- Something to look out for, anyway.
-
- B.
- =========================================================================
- Date: Fri, 5 Aug 1994 11:17:08 EETDST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI>
- Subject: Re: Sender's address
- In-Reply-To: <9408050414.AA27859@smtp.tele.fi>; from "Automatic digest
- processor" at Aug 5, 94 12:00 am
-
- >>>How do I get the address of the application who sent the event to my script?
-
- --John:
- >I can't think of a way to do this. I'll be happy to be educated. In real
- >code, it is trivial (there is an attribute one can extract from either the
- >incoming event or the reply, in an AE Handler function which contains what
- >is needed). But that's not accessible to a script. Nor does it seem
- >possible to pass it along to an osax. Nor is there AppleScript syntax to
-
- Yup. It's very easy to get the address once you get the original AppleEvent
- in your hands - but that's the problem.
-
- >Or switch to Frontier, where a handler for a custom event can dig the
- >address attribute out of the incoming event, and keep it around for later
- >use.
-
- That's the exact feature I'm looking for in the AppleScript - I'm not ready to
- move into Frontier. That would be too much of an investment mentally and
- economically - at least right now.
-
- --Judith
- >in hyperCard (even 2.1) there is a message (hypertalk):
- >appleEvent theClass, theId, theSender
-
- Yes, I've seen that and I made a series of desperate tests to get the address
- in a similar way with no luck.
-
- --Lawrence
- >Just a thought: my AppleEvent utilities for HyperCard include an XFCN called
- >AEGetTheCurrentEvent, which calls the AppleEvent Manager routine of the same
- >name. With current versions of HyperCard, you can call this from within an
- >"On AppleEvent" handler, and get a complete copy of the current event this way.
- >My idea is: would a similar thing work from AppleScript as well? If you had
- >an osax that called AEGetTheCurrentEvent, and you invoked this from within
- >a script handler, would you get a copy of the event currently being handled?
-
- I thought of the osax too but does the osax get ANYTHING about the original
- AppleEvent sent to the whole handler - I doupt. I'm pretty sure that the AE
- the osax gets is sent by the SCRIPT and so includes the address of the script
- who calls the osax not the original client software.
-
- ...or is there a way to get still unhandled Apple Event somehow (the one that
- the script is still handling while calling my osax) ? I have IM VI but should I
- read it more carefully :) That way yes - I could get the original AE and
- after that the whole thing would be easy as 3.14156.
-
- >Yeah, sure, I could probably write it first, and then find out whether it
- >works, but you know what us lazy programmers are like... :-)
-
- Looks like I have a small program to make for holding the sender's address -
- some kind of front door for the events. I already made the client program
- (in Pascal) that sends those events to my script... it doesn't sound just
- right. I SHOULD be able to parse the sender's address from the incoming
- AE in AS :=(
-
-
- - Loimu (tloimune@denethor.th.tele.fi)
- (tloimune@vipunen.hut.fi)
- =========================================================================
- Date: Fri, 5 Aug 1994 09:07:31 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: ScriptWizard Demo Bug?
-
- I've been trying out the ScriptWizard Demo and I'm very impressed and
- considering ordering it before the current special ends (end of the month, I
- think).
-
- However... every time I try to do a find on a script I get some sort of serious
- system error. No error message, just a complete freeze of the Mac. Can't get
- to MacsBug, can't force quit, the only alternative is to restart. I tried this
- with most extensions off (except AS, of course) and still got the freeze.
-
- Is this a known problem (hopefully) with the demo? Will the real ScriptWizard
- work just fine?
-
- Peter
- =========================================================================
- Date: Fri, 5 Aug 1994 11:43:29 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nathan Urban <nurban@SYSPLAN.COM>
- Subject: Eudora as an MDA
-
- I want to have some sort of scriptable mail-delivery agent. It only needs
- to just send mail (so far, at least). How can I get an AppleScript to do
- this, and yet not interfere with my Eudora for personal mail? The script
- will need to change the preferences and such, and I don't want Eudora
- retrieving mail while the script is operating, and I don't want the script
- to interfere with my reading mail. I guess this requires running two
- copies of the Eudora application separately? Is this possible? Am I
- better off finding some other mail-delivery agent to use? I suppose I
- could even write a script to open an SMTP connection.
-
- On a related note, how can I get Eudora to open a preferences file? Maybe
- I'm being really dense, but I didn't see anything in the dictionary for it.
-
- ------------------------------------------------------------------------------
- Nathan Urban Voice:(703) 351-8489
- System Planning Corporation (SPC) Fax: (703) 351-8662
- 1429 North Quincy Street E-mail: nurban@sysplan.com
- Arlington, VA 22207 nurban@vt.edu
- ----------------------------------------------------------------------------
- --
- =========================================================================
- Date: Fri, 5 Aug 1994 09:20:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Can't write new script! (not)
-
- >Wow. ten minutes after sending that message, I solved the problem. Never
- >satisfied to leave something alone, I figured that I hadn't tried just
- >opening the script editor without any script or file and just start from
- >scratch. Well, it still didn't work, but then I happened to look at that
- >little box at the bottom of the script window where the scripting language
- >is displayed. There was the little down pointing triangle, but it was
- >otherwise blank. I clicked on it, and some choices showed up, I chose
- >AppleScript and everything was happy again.
- >
- >I'm guessing that somehow, because I had just tried out Frontier Runtime
- >but was no longer running it, there was a blank choice selected as the
- >default scripting language. Doesn't seem right, but it's just a guess
- >anyway.
-
- Indeed. I see this problem in a different aspect: I always (well, almost
- always) have Frontier running, so I don't see the inability to connect to
- the scripting component form of the problem. My form is this: I create a
- UserTalk script in Script Editor, do whatever with it, then quit Script
- Editor. Later, I launch Script Editor again, and enter a perfectly nice
- AppleScript script into the untitled window. And get syntax errors, since
- the window is set for UserTalk.
-
- I have learned that for me, what works is to open new script window and set
- the language to AppleScript, after I've led Script Editor to believe I want
- to work in UserTalk.
-
- It's an interesting feature of Script Editor. I can't say it's wrong,
- since it makes sense that someone would want to work in the same language
- most of the time. Sometime down the road, if Script Editor is revisited, a
- preference might be nice:
-
- new scripts are: same language as last time
- AppleScript
- other language 1
- ...
-
- Oh, well. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 5 Aug 1994 12:10:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- >At any rate, I'm curious if anyone else has heard of this app, or has the
- >developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
-
- I have had the developer's kit for many months now and have made great use
- of it. When I bought it they where still bundling FaceSpan's predecessor
- FrontMost. FrontMost was really interesting but after working with it, I
- thought it stunk! I'm sure the things that didn't work have mostly been
- fixed with FaceSpan.
-
- -DM
-
- Desmond K. Mullen - University of Minnesota, Office of Admissions
- mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
- =========================================================================
- Date: Fri, 5 Aug 1994 12:10:43 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
- Subject: Re: Sender's address
-
- >>How do I get the address of the application who sent the event to my script?
- >>
- >>I know "return" will return a AE reply to the sender, but how can I send
- >>other events to the client program afterwards? I can't find any mention
- >>about it... not in FAQ, not in a couple of months reading this listserv...
- >
- >I can't think of a way to do this. I'll be happy to be educated. In real
- >code, it is trivial (there is an attribute one can extract from either the
- >incoming event or the reply, in an AE Handler function which contains what
- >is needed). But that's not accessible to a script. Nor does it seem
- >possible to pass it along to an osax. Nor is there AppleScript syntax to
- >do the job of "telling" the decided-at-runtime application anything.
-
-
- Well, how about HyperCard 2.2? It's pretty fantastic with IAC. It can
- easily tell you who the sender of any type of Apple Event it received was
- and you can always keep that info and use it later. HyperCard is pretty
- adept at sending Apple Event in raw forms or via AS or Frontier.
-
- I've used these features a lot and never been disappointed.
-
- -DM
-
- Desmond K. Mullen - University of Minnesota, Office of Admissions
- mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
- =========================================================================
- Date: Fri, 5 Aug 1994 12:23:15 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: Eudora as an MDA
-
- >I want to have some sort of scriptable mail-delivery agent. It only needs
- >to just send mail (so far, at least). How can I get an AppleScript to do
- >this, and yet not interfere with my Eudora for personal mail? The script
- >will need to change the preferences and such, and I don't want Eudora
- >retrieving mail while the script is operating, and I don't want the script
- >to interfere with my reading mail. I guess this requires running two
- >copies of the Eudora application separately? Is this possible? Am I
- >better off finding some other mail-delivery agent to use? I suppose I
- >could even write a script to open an SMTP connection.
- >
- >On a related note, how can I get Eudora to open a preferences file? Maybe
- >I'm being really dense, but I didn't see anything in the dictionary for it.
- >
- >------------------------------------------------------------------------------
- >Nathan Urban Voice:(703) 351-8489
- >System Planning Corporation (SPC) Fax: (703) 351-8662
- >1429 North Quincy Street E-mail: nurban@sysplan.com
- >Arlington, VA 22207 nurban@vt.edu
- >----------------------------------------------------------------------------
- >--
-
- Get TCP/IP scripting additions - ftp to gaea.kgs.ukans.edu - in the
- applescript /OSAXEN folder. There is a sample script in that distribution
- that shows how to use his additions to send mail.
-
- Hope this helps -
-
- Best-
- Greg
- =========================================================================
- Date: Fri, 5 Aug 1994 12:39:44 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: TCP/IP scripting additions
-
- I am trying to script a link tester - ie a script that will walk through
- html documents and test out links to make sure they are still good. A
- common problem with running a web server is that the links can start going
- bad and you don't know it. Something automated would be nice.
-
- I picked up the TCP/IP scripting additions (very nice!) and threw something
- together that makes a connection and checks the status to see if there is a
- machine at the other end. Well all seems to work well if there is actually
- a machine but when I try to hit other machines that don't have servers
- running the scripts seems to freeze.
-
- I tried nesting the connect statment in a try statement but that didn't
- seem to make any difference.
-
- Now admittedly I don't know that much about how all the TCP stuff works but
- here are my assumptions. (see example below) I figured I would either get a
- "Connected" if there was a machine there listening at that port - or a "No
- Connection" if there was no machine or nobody listening at the specified
- port. But somewhere along the way things seem to break down.
-
- Some questions -
-
- when I say tcp connect and it tries to connect with a machine with no
- server running at the specified port what happens?
-
- Have I made a terrible assumption in the above?
-
- Any help would be appreciated.
-
- Best-
- Greg
-
-
-
-
- *******This is what i have been working with********
-
- set testHost to "uts.cc.utexas.edu"
- set testPort to 80
-
-
- set test_stream to (tcp connect to host testHost port testPort)
- set testResult to "No result"
- repeat
- if (connection status of =AC
- (tcp status stream test_stream) =3D Connected) then
- set testResult to "Connection OK"
- tcp close stream test_stream
- exit repeat
- end if
-
- if (connection status of =AC
- (tcp status stream test_stream) =3D No connection) then
- set testResult to "No Connection"
- tcp close stream test_stream
- exit repeat
- end if
- end repeat
-
-
- display dialog "The result was " & testResult
-
-
- *******end********
- =========================================================================
- Date: Fri, 5 Aug 1994 11:26:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Kalkwarf <kalkwarf@NETCOM.COM>
- Subject: Re: Index of OSAXEN
-
- >I would probably recommend beginners take a look at Script-A-File from our
- >own Danny Goodman. As freeware, it's a whole lot cheaper. ;->
-
- I've gotta ask...Where can it be found? I checked gaea, AOL, and the disk
- that came with Danny's book.
-
- Steve
- =========================================================================
- Date: Fri, 5 Aug 1994 13:35:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Index of OSAXEN
- In-Reply-To: Your message of "Fri, 05 Aug 94 11:26:39 PDT"
-
- >>I would probably recommend beginners take a look at Script-A-File from our
- >>own Danny Goodman. As freeware, it's a whole lot cheaper. ;->
- >
- >I've gotta ask...Where can it be found? I checked gaea, AOL, and the disk
- >that came with Danny's book.
-
- I pulled it from the Ziff-Net Mac section on CI$ (compuspend) a couple of
- nights ago. It's the MacUser Utility of the Month. And as such, can't be
- uploaded anywhere else. I suppose it should also be available on eWorld since
- Ziff-Davis has an area there, too.
-
- pf
- =========================================================================
- Date: Fri, 5 Aug 1994 14:54:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Jones <STJONES@ACAD1.MTSU.EDU>
- Subject: Re: Index of OSAXEN
-
- Sript a file IS available on eWorld. That's where I got it.
-
- stj
- Steven T. Jones
- Assistant Professor of Design & Technology
- Middle Tennessee State University
- =========================================================================
- Date: Fri, 5 Aug 1994 17:52:51 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: strip leading
-
- The message about the Frontier process for this led me to think about how
- AS could do it without osaxen, and I set up a repeat while character 1 of
- etc = "0". (Took me awhile to figure out I needed the quotes, too.)
-
- New frustration. I can generate the new value of the text item in question
- in a variable, but I can't figure out any way to set the text item (or the
- text of the text item, or the contents of the text item) to that variable.
- Is there no way to alter a text item in AS? My whole approach in this
- script so far depends on reading in a tab-delimited file and treating each
- of the entries as a text item. It seemed like the only way to go until
- now.
- =========================================================================
- Date: Fri, 5 Aug 1994 18:39:24 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nikolaos Daniel Willmore <ndw1@COLUMBIA.EDU>
- Subject: Script Memory Size vs. File Size.
-
- OK, all is well, but my scripts are memory hogs. Yuk. The story is, I'm
- using Jon's commands to spool the Clipboard to disk then having MacPGP
- act upon that file, then spooling the result back to the Clipboard.
- Problem is, if the text on the Clipboard is 30K my little 8K app
- needs 300K to work! Roughly it needs 10 times the memory of the
- size of the Clipboard, or it either just locks up (!) indefinitely,
- gives a memory error, or fails to create the spool file and says
- file not found. Here is the sort of thing I'm doing....
-
- if length of (the clipboard) = 0 then
- display dialog "The Clipboard does not contain text." buttons {"OK"}
- default button "OK"
-
- else
- set pathToDesktop to path to desktop
- set ClipboardSpool to (pathToDesktop as string) & "Clipboard Temp.asc"
- set PGPOutput to (pathToDesktop as string) & "Clipboard Temp"
-
- open for access file ClipboardSpool with write permission
- write (the clipboard) to ClipboardSpool
- close access ClipboardSpool
-
- try
- tell application "MacPGP"
- execute (("pgp \"" & ClipboardSpool as string) & "\"")
- if (list folder ((path to system folder as string) &
- "OtherMenu Folder:Settings:")) contains " Keep MacPGP running" then quit
- end tell
-
- on error
-
- tell application "Burn 2.1"
- open ClipboardSpool
- quit
- end tell
-
- display dialog "Sorry, there was an error. If it was MacPGP's
- recycling of bad passphrases, try \"Decrypt\" again" buttons {"OK"} default
- button "OK"
- tell application "MacPGP" to quit
- return
-
- end try
-
- try
-
- open for access file PGPOutput
- set the clipboard to (read PGPOutput)
- close access PGPOutput
-
- tell application "Burn 2.1"
- open ClipboardSpool
- open PGPOutput
- quit
- end tell
-
- Is there any way to do "write (the clipboard) to ClipboardSpool" and
- "set the clipboard to (read PGPOutput)
- " without needed an order of magnitude more RAM than it should
- require? A scripting addition which did this Clipboard<->file thing
- would sure help :-).
-
- - Nik
-
- P.S. I'm on a PowerBok 180c with 14MB.
- =========================================================================
- Date: Fri, 5 Aug 1994 16:06:25 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Opening a script saved as app
-
- Apparently there is a way to open Frontier scripts by Cmd-doubleclicking
- them. Is there something similar for AS?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- Berkeley Systems would have to pay me a lot more if they
- wanted me to speak for them.
- =========================================================================
- Date: Fri, 5 Aug 1994 16:35:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: AppleScript as a network software installer/updater system
-
- I'm experimenting with the idea of using AppleScript as a software
- installation and distribution system. The runtime components of
- AppleScript, as I understand it, is something I can distribute to my users
- (right?). A typical script would be: "Install Mosaic", which would check
- to see if the application exists locally, check its version, and then quit
- the application and install mosaic from a folder on a server. This script
- would do such things as: tell the user to quit the application or quit the
- application for them, put up a progress screen (using Progress Bar) compare
- version numbers, get previous application memory settings, extract files
- from stuffit archives by scripting stuffit expander, restore memory
- settings, and e-mail the Computer Staff about the installation. An
- installer script for an application such as Mosaic should also invoke
- installer scripts for helper applications.
-
- Such a setup would require that users have the runtime components of
- AppleScript installed as well as helper apps and the required OSAXes.
-
- We have GraceLAN, which works pretty well, but I'm looking for a more user
- driven installation system. With GraceLAN you always have to re-construct
- the package document every time you have a new or updated file to
- distribute. With AppleScript, I could just drop the updated files in place
- on the server somewhere, construct the scripts (once) and place them either
- on the server or distribute them to the users, and then let them run the
- installation script. AppleScript also has the potential do to all kinds of
- cool stuff related to installation, like restoring the application memory
- setting.
-
- It would be nice if I had the option of launching the scripts myself, but I
- havent found a mechanism that is going to allow this. There is Script
- Daemon, but it would require a lot of additional stuff to set it up right
- and it requires AFP login ability, which is ususally disabled around here
- for security reasons. With GraceLAN for base installations, I'm not sure
- that it's all that important to have "Admin installs". I think I would
- make a master script that users could choose that would run a bunch of
- standard installation scripts. The scripts are efficient in the sense that
- they know when not to do an installation when its already been done.
-
-
- Questions to be answered:
-
- * How do I check for the existance of a file in AppleScript given a pathname?
-
- * How do I get references to the special system folder folders: Extensions,
- Control Panels, etc.
-
- * Can compiled scripts run read-only on a network server?
-
- * How do I locate occurances application by type? This isn't essential for
- me because I generally install applications in a standard user folder
- called "Software", regardless of other copies of the application that the
- user has.
-
- * How do I get the volume name of the startup drive?
-
- * Will it find local applications on different machines without prompting?
- (Basically, how do scripts remember how to launch target apps? If its by a
- file alias, then there could be problems.
-
- * How do I check for 68K or PPC? This is necessary for installing native
- software that is not Fat. Perhaps this is present in some type of Gestalt
- OSAX.
-
- * How to I get and set the application memory size settings?
-
- * How do I check the version number?
-
- * How much RAM is a typical installation script (including AppleScript
- memory) going to require on a users machine?
-
- * How do I check for the amount of free space on a disk? I would probably
- just check against some raw number like 5 MB.
-
- * (Somewhat unrelated:) Anyone seen any sample OSAX source code? I may
- have to write some of this stuff myself.
-
- If you have info on just one of these questions, feel free to reply. Thanks
- for any help.
-
- -Erik
-
-
-
-
-
-
-
-
- ______________________________________________________________________
- Erik Smith | ersmith@ucsd.edu Internet
- Computing Services Director | (619) 534-1989 office
- | (619) 534-3939 fax
- ______________________________________________________________________
- Graduate School of International Relations and Pacific Studies (IR/PS)
- University of California, San Diego (UCSD)
- ______________________________________________________________________
- =========================================================================
- Date: Fri, 5 Aug 1994 17:52:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: AppleScript as a network software installer/updater system
-
- At 16:35 8/5/94 -0800, Erik Smith wrote:
- >I'm experimenting with the idea of using AppleScript as a software
- >installation and distribution system.
-
- I'm starting to get into Installer Making myself (playing with Smaller
- Installer and Aladdin Installer Maker right now). I like your idea -- I've
- figured that if I could count on the user having AS, writing installers
- would be laughingly easy (except for the fact that AS can't give you the
- Blessed system folder for anything other than the active drive, I believe).
- I like your idea.
-
- >It would be nice if I had the option of launching the scripts myself, but I
- >havent found a mechanism that is going to allow this.
-
- If you know where the scripts are (how much control do you have over your
- users? Can they change the location of these scripts), you could just tell
- the Finder to launch them, no?
-
-
- >* How do I check for the existance of a file in AppleScript given a pathname?
- useful code I saw here fairly recently:
- try
- info for ("Disk:Folder1:Folder2:....:File" as alias)
- on error
- display dialog "does not exist"
- end try
-
- >* How do I get references to the special system folder folders: Extensions,
- >Control Panels, etc.
-
- path to system folder
- or
- path to control panels
- or
- path to extensions
-
- You get the idea ...
-
- >* Can compiled scripts run read-only on a network server?
-
- I would see no reason why not, but I don't *know* they can...
-
- >* How do I get the volume name of the startup drive?
-
- text item 1 of (list disks)
-
- >* How to I get and set the application memory size settings?
-
- The scriptable finder can probably do this, but I don't have it yet so I
- dont' know.
-
- >* How do I check the version number?
-
- short version of (info for ("Disk:Folder1:Folder2:....:File"))
-
- >* How much RAM is a typical installation script (including AppleScript
- >memory) going to require on a users machine?
-
- For some of my reason, perhaps due to RunningApps, some of my scripts are
- suddenly unhappy with 200K, so I've upped it to 400K (they're running on
- machines with relatively obscene amounts of RAM, so it's not an issue).
- Experiment :)
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- Berkeley Systems would have to pay me a lot more if they
- wanted me to speak for them.
- =========================================================================
- Date: Fri, 5 Aug 1994 20:41:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: can a Frontier string span lines?
-
- I can't seem to find the documentation on how Frontier strings are formed.
- I know I've read, for instance, that you can have a string contain quotes
- by doing something like =B3a quote containing "quote"=B2 but I can't remembe=
- r
- where I saw it. The point of this long screed is that now I'd like to have
- a string span several lines in order to pass it as a whole to KeyQuencer. I
- know I can embed a "\r" or "=AE" character, but that doesn't enhance
- readability in the same way. Any ideas? Thanks.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Sat, 6 Aug 1994 00:59:43 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Re: Can't write new script! (not)
- In-Reply-To: <199408060447.AAA04337@acme.freenet.columbus.oh.us>
-
- JWB>
- JWB> It's an interesting feature of Script Editor. I can't say it's
- JWB> wrong, since it makes sense that someone would want to work in the
- JWB> same language most of the time. Sometime down the road, if Script
- JWB> Editor is revisited, a preference might be nice
-
- And, perhaps the Script Editor's alert for the situation should not be so
- alarmist. It kept asking me if I really thought the scripting system was
- installed properly, and did nothing to remind me that there might be more
- than one scripting system it would be looking for.
- =========================================================================
- Date: Sat, 6 Aug 1994 01:37:55 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Opening a script saved as app
-
- >Apparently there is a way to open Frontier scripts by Cmd-doubleclicking
- >them. Is there something similar for AS?
-
- In the Frontier case, it is as you say command-double-click. In the
- AppleScript script application case, where the splash screen has been
- suppressed, use control-double-click to get the splash screen. Now, the
- last command in the Edit menu will edit the script.
-
- But...it's usually easier to drag-and-drop the script application onto the
- Script Editor.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Sat, 6 Aug 1994 01:38:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: can a Frontier string span lines?
-
- >I can't seem to find the documentation on how Frontier strings are formed.
- >I know I've read, for instance, that you can have a string contain quotes
- >by doing something like =B3a quote containing "quote"=B2 but I can't rememb=
- er
- >where I saw it.
-
- This form goes back to Frontier 1.0. It's probably in the printed
- documentation somewhere...it's now in the DocServer page for " " (the
- pseudo verb quote-space-quote).
-
- As of Frontier 3.0 (I think it was), \" will also embed a quote, as in this
- string which contains only a quote: "\""
-
-
- >The point of this long screed is that now I'd like to have
- >a string span several lines in order to pass it as a whole to KeyQuencer. I
- >know I can embed a "\r" or "=AE" character, but that doesn't enhance
- >readability in the same way. Any ideas? Thanks.
-
- If KeyQuencer requires the return characters, you can as you say imbed them
- with \r (or you can use "This is a line." + cr) (cr is a built-in
- constant).
-
- If you want (also, or only) to line the string up nicely in your script
- window, you can build it in pieces on continued lines:
-
- "This is line 1\r" + \
- "This is some more."
-
- The \ must be the last thing on the continued line (I don't think even a
- trailing space will work).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Sat, 6 Aug 1994 00:37:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chuck McKinnon <mckinnon@KAIWAN.COM>
- Subject: Message text in Eudora
-
- I'm stumped. How do you get the text of a message w/o using GetData to get
- the whole message and the parse out the header?
-
- (BTW, what does the [r/o] in the dictionary stand for?)
-
- --
- TIA
-
- Chuck
- =========================================================================
- Date: Sat, 6 Aug 1994 00:37:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chuck McKinnon <mckinnon@KAIWAN.COM>
- Subject: MacPGP/IMPI scripts
-
- I have the IMPI (Interim Mac PGP Interface) scripts but they need AS 1.1
- and that's what I ain't got!
- So,
- could I get someone (who is using 1.1) to translate the compiled scripts
- into text files so I can recompile them for 1.0?
-
- I will supply the archive or if you have it, could you just forward the
- text files to me.
-
- Please respond by email (mckinnon@kaiwan.com) to save the bandwidth.
-
- Thanks for the read!
- __
-
- chuck
- =========================================================================
- Date: Sat, 6 Aug 1994 11:58:31 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shaddar@AOL.COM
- Subject: Re: Where to get Scriptable Finder
-
- >It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
- >since a subscription to _Develop_ is only $30.
-
- Where did you subscribe for $30. Every mention I've seen of it in APDA
- catalogs lists it for $250. I'd really like to get it but was discouraged by
- the cost. $30 I can handle. Could you give me any info you have?
-
- Thanks :)
-
- ~Shaddar
- =========================================================================
- Date: Sat, 6 Aug 1994 12:29:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roy Eassa <re@ZORK.TIAC.NET>
- Subject: Re: Where to get Scriptable Finder
-
- At 11:58 AM 8/6/94 -0400, Shaddar@AOL.COM wrote:
- >>It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
- >>since a subscription to _Develop_ is only $30.
- >
- >Where did you subscribe for $30. Every mention I've seen of it in APDA
- >catalogs lists it for $250. I'd really like to get it but was discouraged by
- >the cost. $30 I can handle. Could you give me any info you have?
-
- Me too! Please post or summarize for all to see.
-
-
- --
- Roy Eassa
- re@tiac.net
- =========================================================================
- Date: Sat, 6 Aug 1994 11:58:30 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Where to get Scriptable Finder
- In-Reply-To: Your message of "Sat, 06 Aug 94 12:29:31 CDT"
-
- >At 11:58 AM 8/6/94 -0400, Shaddar@AOL.COM wrote:
- >>>It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
- >>>since a subscription to _Develop_ is only $30.
- >>
- >>Where did you subscribe for $30. Every mention I've seen of it in APDA
- >>catalogs lists it for $250. I'd really like to get it but was discouraged by
- >>the cost. $30 I can handle. Could you give me any info you have?
- >
- >Me too! Please post or summarize for all to see.
- >--
- >Roy Eassa
- >re@tiac.net
-
- He's referring to the bookmark cd which comes with develop magazine;
- not the Developer's cd. However, some of the goodies on the Developer's
- cd usually find there way to the bookmark cd (it always has electronic
- versions of the magazine articles and the source code). The price is
- 27.00 (part number M0929LL/A) if ordered from APDA (800/282-2732). They
- also sell back issue for 10.00 each.
-
- Hope that clarifies the matter.
-
- pf
- =========================================================================
- Date: Sat, 6 Aug 1994 10:30:15 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Denny Cahan <dennyc@NETCOM.COM>
- Subject: subscribe
-
- thanks
- =========================================================================
- Date: Sat, 6 Aug 1994 10:55:17 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
- Subject: Read as record
-
- "Lawrence D'Oliveiro, Waikato University, Hamilton, NZ"
- <LDO@WAIKATO.AC.NZ>
- wrote of using a (read as record, write) pair in AS.
- That sounded good to me, kind of like namelist in Fortran,
- so I tried it. It donUt work.
-
- (read as list/write) is OK.
-
- as record io works maybe one time out of twenty, generally
- fails either by returning a screenful of garbage or by
- uplocking my computer. i suspect a bug in the osax.
-
- and yet it worked for Lawrence D'Oliveiro. Hmmm.
-
- Comments?
- >>>>>Nelson@nbyrne.SAIC.com
- Nelson Byrne
- SAIC LOC#001/MS#C2
- 10260 Campus Point Drive
- Sandy Eggo, CA 92121
- >>>>>(619) 546-6485
- =========================================================================
- Date: Sat, 6 Aug 1994 08:42:19 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Getting the front application dilemma
-
- Hi,
- Here is the problem I am having: I want to get the identity of the
- front-most application when my script is launched via OtherMenu so that I
- can switch back to that app after my script launches another app.
-
- I need my scripts to be applications so they can handle drag-n-drop
- processing though.
-
- I've tried using some of the scripting additions to get the name of the
- current application. They just return the name of the script droplet that
- is launched, which is how they are supposed to behave. But it's not what I
- want!
-
- I want the name of the appliation that was active right before someone
- launches my script droplet. Is there anyway to do this?
-
- Any ideas?
- =========================================================================
- Date: Sat, 6 Aug 1994 15:16:12 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joseph Block <jpb@GATE.NET>
- Subject: Thanks for resource pointer
-
- Thanks to all the listmembers that pointed out the GTQLib1.2 resource
- editing osaxen.
-
- jpb@gate.net
- =========================================================================
- Date: Sat, 6 Aug 1994 15:05:02 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Re: Message text in Eudora
-
- Chuck,
-
- >I'm stumped. How do you get the text of a message w/o using GetData to get
- >the whole message and the parse out the header?
- >
-
- set foo to field "" of mailbox "In" of mail folder ""
-
- >(BTW, what does the [r/o] in the dictionary stand for?)
-
- [r/o] = read only
- >
- >--
- >TIA
- >
- >Chuck
-
- You're quite welcome.
-
- --Tom
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "The city is a place where a small boy, as he walks
- Support Specialist through it, may see something that will tell him what
- CoVis Project he wants to do his whole life."
- Northwestern Univ.
- E-mail: donovan@covis.nwu.edu --Louis I. Kahn
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Sat, 6 Aug 1994 15:56:44 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Where to get Scriptable Finder
-
- >>It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
- >>since a subscription to _Develop_ is only $30.
- >
- >Where did you subscribe for $30. Every mention I've seen of it in APDA
- >catalogs lists it for $250. I'd really like to get it but was discouraged by
- >the cost. $30 I can handle. Could you give me any info you have?
-
- "develop" magazine. Not the "Developer Technical Information" series, or
- whatever name it goes by this week. The latter is the 3 figure one (which
- I do buy, having never bothered to become an "Associate"). The former is a
- quarterly magazine, with a CD included. It's not at all new: the June
- 1994 issue is #18. Each CD contains all the back issues, with text
- corrections, and the source code (with corrections). And other stuff,
- which has varied over time.
-
- The magazine is worth $30...the CD is therefore "free". The CD is worth
- $30...the magazine is therefore "free". Gee...they're both free!!
-
- The better way to subscribe (for $30 in the US, $50 anywhere else) is to
- call 800-877-5548 in the US, or 815-734-1116 from other countries.
-
- APDA will attempt to sell subscriptions (but has a history of losing them,
- instead) for $27 plus $3 shipping [US price, international not known here].
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Sat, 6 Aug 1994 16:40:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Douglas R. Peckham" <dopeckh@EIS.CALSTATE.EDU>
- Subject: Re: can a Frontier string span lines?
- In-Reply-To: <199408060839.BAA21078@eis.calstate.edu>
-
- Hi Applescripters,
-
- Just one quick question: does the number of scripting additions in the
- "scripting additions" folder affects the amount of time it takes to compile?
-
- Aaron
-
- --
- Aaron Peckham "There are three kinds of people in the
- dopeckh@eis.calstate.edu world: those who can count, and
- Proud member of Barney is Bad those who can't." -- anonymous
- Unhealthy snacks are fun!
- =========================================================================
- Date: Sat, 6 Aug 1994 14:15:51 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Eudora scripts
-
- Hi,
- I'm having trouble figuring the syntax of AppleScript commands in
- Eudora. It seems pretty confusing to me.
-
- Are there any AppleScript examples on the Qualcomm ftp site? or on
- gaea?
-
- If anyone has any Eudora AppleScripts that they can send me, I would
- appreciate it.
-
- Thanks,
- -peter
- =========================================================================
- Date: Sat, 6 Aug 1994 20:49:55 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: AS variable scoping (theory question!)
-
- Hi folks,
-
- Disclaimer; I'm a Scheme programmer and am used to *lexical scoping*.
-
- So I have this procedure, which I want to name WhatsUp which draws a dialog
- containing the results of some other procedures which are passed variables.
-
-
- I have two top-level identifiers (variables) called InBox and BoxFolder.
-
- (This is a script for Eudora, to flush erroneous Reply-To: headers inserted
- by certain persky mailing lists (not all of them listservs, either!))
-
- Now. When I write some code to draw the dialog telling me how many
- messages are beign flushed in what boxes etc, it runs fine when not wrapped
- by an "On WhatsUp". However, if I wrap it with an "On WhatSup()" it says
- "The variable InBox is not defined."
-
- In Scheme, if a procedure is called and does not have a local variable
- named InBox, it uses the variables named InBox in the calling procedure,
- and so on until it FINDS some. Seemingly, this is not happening here.
- (Lexical scoping is precisely this: variables are looked up by looking at
- the TEXT of the code, fully expanded of course, until an identifier is
- found. One can determine on paper what a variable refers to.)
-
- So of course I tried "Set InBox to InBox" in the hope that this would force
- the lookup of "InBox" in the calling function, but no such luck.
-
- Do I HAVE to declare these things global? Is there a way, (besides
- explicit passing of environments <grin>) to fake lexical scoping in AS?
-
- Why NOT declare things global you ask? Well, because that would presumably
- override everything that I think is local, and I would have to specify all
- variables local inside procedures (I think.) Nor do I want to explicitly
- pass lots of variables into functions. I just want WhatsUp to know the
- variables known to the function that called it.
-
- Thanks for any suggestions. (Telling me to write my own AS interpreter in
- Scheme has already occurred to me, but I dunno any Schemes that can grok
- appleevents.) Pointers to an AS language spec would be really great.
-
- ~ Kiran
-
- --
- "I have never yet written anything, long or short, that did not surprise me.
- That is, for me, the greatest worth of writing, which is only incidentally
- a way of telling others what you think. Its first use is for the _making_
- of what you think, for the discovery of understanding, an act that happens
- only in language."....................Richard Mitchell, _The Gift of Fire_
-
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Sat, 6 Aug 1994 22:47:28 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Eudora 2.1 notification handler
-
- Has anyone written a script with a working handler for Eudora notification
- events? I've been trying with NO success. I'm using 2.1b35, but would be
- happy to see a working handler for any version.
-
- Thanks,
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Sun, 7 Aug 1994 00:19:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Mobilio, Dominick" <MOBILD@PRINCE.MM.WYETH.COM>
- Subject: FileMaker Import Scripts
-
- From: Mobilio, Dominick
- Date: Sun, Aug 7, 1994 0:19 AM
- Subject: FileMaker Import Scripts
- To: MacScripting
- I'm trying to write a droplet that, when you drag a few text files onto the
- icon, they are imported into a FileMaker file through a script in the FileMaker
- file. How do I do this? The problem is that the script in FileMaker either
- brings up a dialog box asking you to pick the file to import or a file is hard
- coded into the script. It defeats the purpose of writing a droplet in the
- first place to sit there while the droplet executes picking files one at a
- time. Does anyone have any ideas on how to do this? Do I have to wait for the
- scriptable finder? Then I can probably change the name of the files one at a
- time to match the one hard coded into the FileMaker script.
-
- Dominick
- =========================================================================
- Date: Sat, 6 Aug 1994 21:45:09 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AS variable scoping (theory question!)
-
- >Hi folks,
- >
- >Disclaimer; I'm a Scheme programmer and am used to *lexical scoping*.
- >
- >So I have this procedure, which I want to name WhatsUp which draws a dialog
- >containing the results of some other procedures which are passed variables.
- >
- >
- >I have two top-level identifiers (variables) called InBox and BoxFolder.
- >
- >(This is a script for Eudora, to flush erroneous Reply-To: headers inserted
- >by certain persky mailing lists (not all of them listservs, either!))
- >
- >Now. When I write some code to draw the dialog telling me how many
- >messages are beign flushed in what boxes etc, it runs fine when not wrapped
- >by an "On WhatsUp". However, if I wrap it with an "On WhatSup()" it says
- >"The variable InBox is not defined."
-
- "Naked" statement in a script are invisibly wrapped in a run handler, as if
- they were all enclosed in
-
- on run ()
- ...
- end run
-
- So your top-level variables are local to the run handler, and not visible
- from the WhatSup handler. You can make them global, or (perhaps better)
- make them properties.
-
- ------
- I'm not sure why it was designed this way...probably so something would
- happen when the script is told to "run".
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Sun, 7 Aug 1994 12:40:25 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kerry Northrup <Tech.Ed@EWORLD.COM>
- Subject: Re: Anyone know of any good "timing" examples?
-
- MR Mac - Michael Robertson <robertso@SDSC.EDU> writes:
-
- ::::
- Rather than reinvent the wheel, I'm wondering if anyone out there knows of
- any AppleScript code samples that deal with timed execution. By that I mean
- a script that will accept some sort of scheduling input and create an event
- which will execute at a certain date and time. An example would be to
- "ping" a server at a certain time. I would like an example that was
- dynamic. i.e. It received user input and then would execute at a later
- time. Any help greatly appreciated and go ahead and send the scripts to me
- via e-mail if you got any laying around! :)
- ::::
-
- This is a good use of QuicKeys in association with AppleScript. You can have
- a timed QuicKey that launches a certain script application, or loads and runs
- a compiled script or sends a handler call to a running script or application.
-
- /kj
-
- Kerry J. Northrup
- Technology Editor/Advanced Systems Lab
- Gannett Co. Inc.
- =========================================================================
- Date: Mon, 8 Aug 1994 09:31:21 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: Eudora 2.1 notification handler
-
- >Has anyone written a script with a working handler for Eudora notification
- >events? I've been trying with NO success. I'm using 2.1b35, but would be
- >happy to see a working handler for any version.
- >
- Something that would be REALLY useful is a script that would run with
- MailShare, the Mac POP3 mailserver, to notify users they have mail. At the
- moment, MailShare can work with Notify, but a. it's expensive, and b. it's
- yet another program that I have to maintain on user's machines. Oh for a
- nice clean AEVT notification!
-
- BTW, I have Eudora 2.03; any changes in 2.1 worth shouting about, or are
- there non-diclosure agreements about?
-
- -------------------------------------------------------------------------
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Mon, 8 Aug 1994 00:02:20 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Boris Levitin <boris@WORLD.STD.COM>
- Subject: Re: Rebuild Desktop -> Extensions Off
-
- One way to force a rebuild of the desktop files upon restart is to create
- a folder called "Desktop" in the root directory of the disk and restart.
- System 7 checks for an item (it doesn't check whether it's a file or folder)
- by that name, because the old System 6 Desktop file was called that. Of course,
- once the rebuild is done, the "Desktop" folder has to be deleted. This is
- probably the only way to rebuild the Desktop files in the recommended manner
- (i.e. during reboot) from a script.
-
- Boris Levitin WGBH Public Broadcasting, Boston
- boris@world.std.com * boris_levitin@wgbh.org
- I produced this message and am solely responsible for its content
- =========================================================================
- Date: Mon, 8 Aug 1994 07:47:37 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith =?iso-8859-1?Q?Kert=E9sz?= SUCHARD <suchard@CNAM.FR>
- Subject: Re: AS variable scoping (theory question!)
-
- >Hi Richard,
-
- >However, if I wrap it with an "On WhatSup()" it says "The variable InBox is
- >not defined."
-
- I do 2 things (one of it and some times the other)
-
- 1. you can say =3D my InBox
- 2. you can set InBox as a property (or a reference to it)
-
- My refers to the top script. It is needed for using top-level soubprogramms =
- too.
- Hope this work for you,
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kert=E9sz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simplicit=E9, c'est le fruit d'un long effort"
- =========================================================================
- Date: Mon, 8 Aug 1994 09:49:36 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeffrey Hammer <jhammer@HELIX.NIH.GOV>
- Subject: Re: Eudora as an MDA
-
- >I want to have some sort of scriptable mail-delivery agent. It only needs
- >to just send mail (so far, at least). How can I get an AppleScript to do
- >this, and yet not interfere with my Eudora for personal mail? The script
- >will need to change the preferences and such, and I don't want Eudora
- >retrieving mail while the script is operating, and I don't want the script
- >to interfere with my reading mail. I guess this requires running two
- >copies of the Eudora application separately? Is this possible? Am I
- >better off finding some other mail-delivery agent to use? I suppose I
- >could even write a script to open an SMTP connection.
- >
- >On a related note, how can I get Eudora to open a preferences file? Maybe
- >I'm being really dense, but I didn't see anything in the dictionary for it.
- >
- >------------------------------------------------------------------------------
- >Nathan Urban Voice:(703) 351-8489
- >System Planning Corporation (SPC) Fax: (703) 351-8662
- >1429 North Quincy Street E-mail: nurban@sysplan.com
- >Arlington, VA 22207 nurban@vt.edu
- >----------------------------------------------------------------------------
- >--
- You don't need to use different copies of the Eudora application, just make
- a copy of the Eudora settings file and store it in a different folder.
- Launch the program by opening the settings file.
-
- Jeff.
- =========================================================================
- Jeffrey Hammer | Tel: (301) 496-6647
- LMCN/NINDS/NIH |
- Bldg. 49, Rm. 2B08 | FAX: (301) 496-8244
- 9000 Rockville Pike |
- Bethesda, MD 20892 |
- =========================================================================
- =========================================================================
- Date: Mon, 8 Aug 1994 08:46:47 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: application suite for Frontier
-
- Nobumi Iyanaga has contributed a Frontier suite that creates an application
- table. You'll find it in
-
- ftp://gaea.kgs.ukans.edu/frontier/gluefiles/appsuite.hqx
-
- An extract from the ReadMe file follows. Enjoy
-
- pf
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >From the ReadMe....
-
- This suite is intended to facilitate an automatic creation of
- Frontier application table for any application you want,
- especially for applications that have no Apple Event support
- at all or have only a minimum of Apple Event support (i.e. the
- Required Suite). For the newer and scriptable applications
- (which have 'aete' resource), the best is to make their application
- tables with the "Commercial Developers" suite bundled with
- Frontier 3.0. This "addToAppTableSuite" can be seen as a
- correspondant tool for those applications older and non
- scriptable. When their application tables are built in the
- <system.verbs.apps> table, you can control them with scripts
- of type :
- app.start ("Nisus");
- with Nisus {
- bringToFront ();
- openDocument ("HD:Folder:Document");
- ....}.
- Here is a list of new "verbs" that can be used when the application
- tables are created :
- a] All Applications (Apple Event aware or non aware) :
- bringToFront () / doMenu (Menu, MenuItem) [<- via QuicKeys
- 3.0] / doQKScript (script) [<- via QuicKeys 3.0] / isRunning () /
- launch () / launchWithDocument (path) / openDocument (path)
- / runQKMacro (macroName) [<- via QuicKeys 3.0]
- b] Apple Event Aware Applications only :
- printDocument (path) / quitApplication () / doScript (script)
- [<- for applications that are controlled by their own scripts]
- =========================================================================
- Date: Mon, 8 Aug 1994 09:22:43 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: Eudora scripts
-
- >Hi,
- > I'm having trouble figuring the syntax of AppleScript commands in
- >Eudora. It seems pretty confusing to me.
- >
- >Are there any AppleScript examples on the Qualcomm ftp site? or on
- >gaea?
- >
- >If anyone has any Eudora AppleScripts that they can send me, I would
- >appreciate it.
- >
- >Thanks,
- >-peter
-
- Yes its not easy - for a good hint at how it's done look on qualcomm's ftp
- site. Let me know if you have anymore questions.
-
- Greg
- =========================================================================
- Date: Mon, 8 Aug 1994 09:22:45 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: Eudora 2.1 notification handler
-
- >Has anyone written a script with a working handler for Eudora notification
- >events? I've been trying with NO success. I'm using 2.1b35, but would be
- >happy to see a working handler for any version.
- >
- >Thanks,
- >
- >~ Kiran
- >
- >--
- >6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
-
- Not that this is what you are really looking for but -
-
-
- the problem I found with the Eudora notification event is that is brings
- the script you want to do something with Eudora into the foreground and in
- most cases you want this script to work in the background. My solution was
- to write a bit of C code that catches the notification event and then
- launches the script in the background.
-
- Hope this isn't too far off the point.
-
-
- Greg
- =========================================================================
- Date: Mon, 8 Aug 1994 13:01:32 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
- Subject: passing data to hyperCard
-
- I need to pass large (greater than 30 K) chunks of data from AS to HC. A
- field will not handle that much data so a variable should do the trick.
- However, I haven't yet been able to figure out how to pass global vars back
- and forth between AS and HC. Please enlighten me.
-
- *********************************************************************
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- *********************************************************************
- =========================================================================
- Date: Mon, 8 Aug 1994 14:12:59 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FileMaker Import Scripts
-
- >I'm trying to write a droplet that, when you drag a few text files onto the
- >icon, they are imported into a FileMaker file through a script in the FileMaker
- >file. How do I do this? The problem is that the script in FileMaker either
- >brings up a dialog box asking you to pick the file to import or a file is hard
- >coded into the script. It defeats the purpose of writing a droplet in the
- >first place to sit there while the droplet executes picking files one at a
- >time. Does anyone have any ideas on how to do this? Do I have to wait for the
- >scriptable finder? Then I can probably change the name of the files one at a
- >time to match the one hard coded into the FileMaker script.
-
- What I would do would be to store the contents of the dropped files into an
- applescript record:
- ie. set aRecord to {age:12,name:"Mark",address:"hadfield@sickkids.on.ca"}
- If you don't care about the order in which the data gets put into
- Filemaker, all you have to do is:
- Tell application "Filemaker Pro" to set record 1 to aRecord
- where record 1 is a blank record.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Mon, 8 Aug 1994 11:31:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Hopkins <mhopkins@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 3 Aug 1994 to 4 Aug 1994
-
- Roy:
-
- Try ScriptWizard - the demo is posted on gaea
- (ftp://gaea.kgs.ukans.edu/applescript/demos/ScriptWiz.Demo.sit.hqx)
-
- The SYstem Dictionary feature lets you look at all of the OSAXEN as part of
- the "System Object Suite".
-
- We are selling it for $45 until the end of August. If you want the order
- form, its also there under
- (ftp://gaea.kgs.ukans.edu/applescript/PRs/ScriptWizardPR.sit.hqx)
-
- Best Regards,
-
- MGH
-
- >
- >Date: Thu, 4 Aug 1994 16:14:08 -0800
- >From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- >Subject: Index of OSAXEN
- >
- >
- >Now, how do I do this? I am somewhat reluctant to do an 'Open Dictionary'
- >in Script Editor for each OSAX. Script Editor is not scriptable either,
- >unfortunately, so I seem to be screwed.
- >
- >Is there any other way to extract commands from OSAXEN?
- >
- >-roy
-
- Mike Hopkins | PH: (408)253-7199
- Full Moon Software, Inc. | FAX: (408)252-2379
- P.O. Box 700237 | CIS: 70713,2664
- San Jose, CA 95170 | AOL: MHopkins
- =========================================================================
- Date: Mon, 8 Aug 1994 14:52:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: AS variable scoping (theory question!)
-
- >Hi folks,
- >
- >Disclaimer; I'm a Scheme programmer and am used to *lexical scoping*.
-
- Warning! Warning! Warning!
-
- You will have to shift gears. AppleScript uses the following scoping rules:
-
- A script may contain one or more handlers,
- as well as global and local data declarations.
-
- A handler may declare local variables, or just start using them.
-
- A variable is locally scoped to the nesting level where it is declared.
-
-
- >So I have this procedure, which I want to name WhatsUp which draws a dialog
- >containing the results of some other procedures which are passed variables.
- >
- >
- >I have two top-level identifiers (variables) called InBox and BoxFolder.
-
- >Now. When I write some code to draw the dialog telling me how many
- >messages are beign flushed in what boxes etc, it runs fine when not wrapped
- >by an "On WhatsUp". However, if I wrap it with an "On WhatSup()" it says
- >"The variable InBox is not defined."
-
- InBox and BoxFolder are must be declared as globals or properties for this
- to work.
-
- >Why NOT declare things global you ask? Well, because that would presumably
- >override everything that I think is local, and I would have to specify all
- >variables local inside procedures (I think.) Nor do I want to explicitly
- >pass lots of variables into functions. I just want WhatsUp to know the
- >variables known to the function that called it.
-
-
- The lookup rules are 1) try local 2) try global so:
-
- global foo
- global InBox
-
- on whatsup()
- set fred to "test" -- fred's a local
- local foo -- will use my local because I declared it
- set foo to "temp" -- does not change global foo
- set InBox to "changed global" -- we just changed the global
- end
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Mon, 8 Aug 1994 15:17:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Getting the front application dilemma
- In-Reply-To: <no.id> from "Pete Hinely" at Aug 6, 94 08:42:19 am
-
- --Pete Hinely wrote:
- >
- >I want the name of the appliation that was active right before someone
- >launches my script droplet. Is there anyway to do this?
-
- Well, I thought the Scriptable Finder would help with this, but it
- lists processes in the order that they were launched and not based on
- which is in front of another like it does for disk and folder windows.
- You might be able hack something together using the GTQ Scripting
- Library. There is a switch to launcher OSAX that works really well for
- scripts called from OSA Menu.
-
- -Hades
- =========================================================================
- Date: Mon, 8 Aug 1994 13:22:01 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker Import Scripts
-
- >>I'm trying to write a droplet that, when you drag a few text files onto the
- >>icon, they are imported into a FileMaker file through a script in the
- >>FileMaker
- >>file. How do I do this? The problem is that the script in FileMaker either
- >>brings up a dialog box asking you to pick the file to import or a file is hard
- >>coded into the script. It defeats the purpose of writing a droplet in the
- >>first place to sit there while the droplet executes picking files one at a
- >>time. Does anyone have any ideas on how to do this? Do I have to wait for
- >>the
- >>scriptable finder? Then I can probably change the name of the files one at a
- >>time to match the one hard coded into the FileMaker script.
- >
- >What I would do would be to store the contents of the dropped files into an
- >applescript record:
- >ie. set aRecord to {age:12,name:"Mark",address:"hadfield@sickkids.on.ca"}
- >If you don't care about the order in which the data gets put into
- >Filemaker, all you have to do is:
- > Tell application "Filemaker Pro" to set record 1 to aRecord
- >where record 1 is a blank record.
-
- Or,
-
- create new record with data aRecord
-
-
- [In more modern applications, that's "make new record...."]
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 8 Aug 1994 17:21:41 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <anbrown@HUSC9.HARVARD.EDU>
- Subject: searhing through an fmpro database using applescript...
-
- Does anyone know if it is possible to do search through a filemaker pro
- database using applescript w/o having to write a search routine? I have
- succesfully been able to sort a database by telling filemaker pro to sort
- the database from applescript(ie, use the sort command from the filemaker
- dictionary).
-
- If it is not possible, is there a way pass a parameter to a filemaker pro
- script so that all I have to do is tell it:
-
- tell application "filemaker pro"
- do script "mysearch" (I guess the parameters would be listed here)
- end tell
-
- is it possible to do something like what I am trying to do without
- writing my own search routines, or am I going to have to do it the old
- fashioned way and write a binary search or something?
-
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphin's Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Mon, 8 Aug 1994 14:45:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: Eudora 2.1 notification handler
-
- >Something that would be REALLY useful is a script that would run with
- >MailShare, the Mac POP3 mailserver, to notify users they have mail.
-
- We have a neat little script we were showing at MacWorld that forwards mail
- to an alphanumeric pager using our new product (PageNOW!). Since we support
- message splitting (sending of messages larger than the usual 99 or so
- characters) you can choose to forward the entire message, or just the
- headers.
-
- >At the
- >moment, MailShare can work with Notify, but a. it's expensive, and b. it's
- >yet another program that I have to maintain on user's machines. Oh for a
- >nice clean AEVT notification!
-
- Well it *is* a seperate app (point a), but PageNOW is about half the price
- (point b) - SRP of $79.95 for single user, less for owners of other
- Mark/Space products (our telecom app or CTB tools).
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, Suite 230 fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, ZMODEM Tool, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Mon, 8 Aug 1994 15:17:52 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: searhing through an fmpro database using applescript...
-
- >Does anyone know if it is possible to do search through a filemaker pro
- >database using applescript w/o having to write a search routine? I have
- >succesfully been able to sort a database by telling filemaker pro to sort
- >the database from applescript(ie, use the sort command from the filemaker
- >dictionary).
- >
- >If it is not possible, is there a way pass a parameter to a filemaker pro
- >script so that all I have to do is tell it:
- >
- >tell application "filemaker pro"
- >do script "mysearch" (I guess the parameters would be listed here)
- >end tell
- >
- >is it possible to do something like what I am trying to do without
- >writing my own search routines, or am I going to have to do it the old
- >fashioned way and write a binary search or something?
-
- the basic but very slow way is
-
- show records where cell "foo" contains "bar"
-
- [Clearly, other tests can be done.]
-
- Much faster is to have a FileMaker script ready made which doesn nothing
- (much) but select the desired records, and run that with do script. That
- implies you know in advance what they are. And there are other variations.
-
- show is slow enough that you will probably want to wrap it in
-
- with timeout of 10000 seconds --OK, it's [usually] not THAT slow
- show ...
- end timeout
-
- since the default 3 minute timeout is probably not sufficient.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 8 Aug 1994 23:18:49 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Atul Butte <Atul_Butte@BROWN.EDU>
- Subject: NEW TCP/IP Scripting Addition EXAMPLES!
-
- You asked for it... now here are three more examples using the TCP/IP
- Scripting Addition. Two of these samples use FrontMost (a.k.a. FaceSpan).
-
- The first is a simple Finger client, using FrontMost. The second is a
- Gopher client, that not only uses FrontMost, but also uses Scriptable Text
- Editor and JPEGview to let you view text and GIF gopher documents. The
- third sample is a Baby Telnet... it handles the "options negotiation" and
- connects you to a telnet host (up to the "login:" prompt).
-
- All these samples are in a Compact Pro/Binhex document, around 450K. Fred
- will probably post when it makes it into the scripts directory. I hope
- these are helpful for y'all.
-
- I would like to remind those of you who use the Scripting Addition to
- please read and follow the Licensing Information. At this point, I have
- still not receive a single DIME for the Scripting Addition... it sort of
- makes it hard to justify putting more work into samples and features.
-
- Thanks for your support.
-
- -- Atul
- ----------------------------------------------------------------------
- Atul Butte (MD '95)
- Brown University School of Medicine
-
- atul_butte@brown.edu
- =========================================================================
- Date: Mon, 8 Aug 1994 23:53:59 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Atul's tcp/ip scripts
-
- Folks,
-
- I just dropped Atul Butte's tcp sample scripts into the scripts directory
- on gaea
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/tcp_samples.sea.hqx
-
- These sample scripts (baby telnet, Finger Client, and Gopher Client)
- require his tcp osax (which you'll find in the osaxen directory).
-
- That follows are his comments about the scripts. Enjoy.
-
- pf
-
-
- Random Notes on the sample scripts
-
- 1. These all require the TCP/IP Scripting Addition (version 1.0)
-
- 2. All the demonstration scripts are Copyright (C) 1994 Atul Butte. All Rights
- Reserved. However, you may use any AppleScript code from the samples in your
- own programs.
-
- 3. The Finger Client is a simple FaceSpan internet finger client. It's pretty
- self-explanatory once you start it.
-
- 4. The Gopher Client also uses FaceSpan and is more sophisticated; it requires
- Scriptable Text Editor and JPEG View. Read the separate note for more details.
-
- 5. Baby telnet is a Script Editor Script. Give it the name of an internet host
- (preferably Unix) and it will telnet to that host. It takes care of options
- negotiation, pretends to be a vt100 terminal connecting to the host, and shows
- you the login prompt (and disconnects). Use this as a first-step to building
- your own automated login scripts.
-
- 6. The baby telnet script keeps running UNTIL it reads a "login:" prompt. Don't
- use my sample script to connect to hosts that don't have a "login:" prompt!
-
- 7. The Finger and Gopher clients use FaceSpan (or FrontMost) but they were saved
- as "complete applications" so you probably don't need the FaceSpan/FrontMost
- extension in your Extensions folder to run them.
-
- If you have questions or comments, please mail me at atul_butte@brown.edu
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Tue, 9 Aug 1994 04:46:47 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: SITComm and the window properties?
-
- When using SITComm, several of my sessions have different font sizes, and
- therefore different screen widths/heights associated with them. For
- instance, in most of my sessions, I want a 22 line, 80 column screen. In
- some I use 9pt Monaco, while in others I use 12pt. When I switch from one to
- the other, the window changes _width_ to reflect the new font size, but not
- height.
-
- I figured I could write some sort of script dealing with "bounds of window 1"
- to make sure the window is in the state I like it. However, it doesn't seem
- to include windows as objects with properties - that is to say, the
- dictionary doesn't define window as an object.... Just a script as simple as
-
- Tell application "SITcomm*" --* is the option-2 trademark symbol
- bounds of window 1
- end tell
-
- doesn't work.
-
- So.... could someone tell me either 1) if I'm wrong, and this can be done or
- 2) that I'm right, so that I can put my two cents in with Aladdin concerning
- this (which this should serve to do, seeing as Leonard reads this list).
-
- For clarity, I _really_ enjoy SITcomm, so don't take this wrong. =)
-
- Regards, and thanks,
- Jay
- --
-
- ==========================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Tue, 9 Aug 1994 08:49:14 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
- Subject: Re: NEW TCP/IP Scripting Addition EXAMPLES!
-
- >I would like to remind those of you who use the Scripting Addition to
- >please read and follow the Licensing Information. At this point, I have
- >still not receive a single DIME for the Scripting Addition... it sort of
- >makes it hard to justify putting more work into samples and features.
- >
- I have offered to pay you for POP3 e-mail client scripts as well as license
- the osax, are you considering this? All I need from you at this point is
- your estimated fee for the whole package. This would be a non-exclusive
- arrangement meaning that you could release the POP3 scripts as a further
- example of how to use the TCP/IP osax. In fact, I would encourage that.
-
- You would also have our OK to cite our system as a living example that
- could be checked out. We can be telnetted to at: gcedunet.peachnet.edu
- The only "gotcha" here is that our terminal server has a hard-wired packet
- TTL (time to live) characteristic that is too short for some connections
- (i.e. California) where there are too many hops (routers, bridges, etc.) to
- navigate within the TTL parameter. If I get the funding to expand to 16
- ports, this will be fixed with a new terminal server.
-
- We are a non-profit service seeking to provide the Georgia K-12 education
- community with no-cost access to electronic information and communications
- opportunities. Your TCP/IP osax will make it possible for us to provide a
- measure (albeit TTY) of Internet access (beginning with e-mail and gopher)
- to this largely "modem-bound" population. At present we are able to
- support 10 simultaneous users. In other words, we would have 10 copies of
- the TCP/IP osax in operation at any one time.
-
- I may need a little help in adapting your work to our HyperCard
- environment, something I have already started to do with your SendMail
- example. Please factor this into your thinking as well.
-
- I look forward to hearing from you.
-
- *********************************************************************
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- *********************************************************************
- =========================================================================
- Date: Tue, 9 Aug 1994 14:54:42 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: passing data to hyperCard
-
- If parameter does not accept it, field either (I heard now limit is 32K)
- then why not dump it as text? It is not 'elegant' but it should work.
-
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Tue, 9 Aug 1994 07:34:09 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- --part_AA6CE1F0003D4F3C00000002
- Content-Type: Text/Plain; charset=US-ASCII
-
- > One problem with the current FaceSpan: there is a large memory leak
- > every time a FaceSpan freestanding application starts up and is
- > quit. (200K or so).
- >
- > There is a much smaller leak each time one of the mini-apps (the
- > ones needing the runtime extension) starts and quits.
- >
- > The workaround is: if it hurts, don't do it. That is...don't plan
- > on starting one of these things up over and over...start it and leave
- > it running.
- >
- > --John
-
- Is this something that is going to be fixed in the next couple months? I would
- like to use FaceSpan for a script I'm distributing to our clients. The
- computers have to run pretty much unattended since most of our clients are
- very much novices. A memory leak would kill us there.
-
- Greg Francis
-
-
- --part_AA6CE1F0003D4F3C00000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- --------------------------------------------------------------------------
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- --part_AA6CE1F0003D4F3C00000002--
- =========================================================================
- Date: Tue, 9 Aug 1994 07:39:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Re: FaceSpan and AppleScript Developer's Kit 1.1
-
- --part_AA6CE325003D97F300000004
- Content-Type: Text/Plain; charset=US-ASCII
-
- > Then again, I may be showing my lack of familiarity with the niche AS
- > has found -- are most people using it for private applications,
- > or business applications? I'm using it for both, though most of the
- > time is spent hacking it for my private pleasure (though it helps
- > my company) ...
- >
- > -roy
-
- We're using AS here to automate sending files from remote schools to a central
- location. Using AS, we're able to reduce a task from about 13 steps down to a
- single step. Plus, it ensures that things are archived on the sending side
- properly. Many of our users are very much novices with computers so AS will be
- a major plus for us.
-
- Greg
-
- --part_AA6CE325003D97F300000004
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- --------------------------------------------------------------------------
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- --part_AA6CE325003D97F300000004--
- =========================================================================
- Date: Tue, 9 Aug 1994 10:42:11 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
- Subject: passing data to apps
-
- I'm still trying to find a way to pass big (> 30K) chunks of data from
- AppleScript to applications such as HyperCard. As I look at the HC
- dictionary it does cite:
-
- Class variable: A HyperTalk variable
- Properties:
- class type class [r/o] -- The class
- name character [r/o] -- The name
-
- ...but I want to set a variable, not read it.
-
- I suppose that I could write a text file to disk with AS and then read it
- into a HC global but the performance hit would be unacceptable. It seems
- so inelegant to me not to have a more direct way (w/o resort to disk access
- and limited only by available memory) to share data in the case of an
- attachable application such as HyperCard.
-
-
- *********************************************************************
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- *********************************************************************
- =========================================================================
- Date: Tue, 9 Aug 1994 09:56:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brett Watson <brett@SCCSI.COM>
- Subject: REMOVE USER!
-
- Forgive me for wasting everyone's time but the list maintainer seems
- to ignore bounced mail as well as pleas for help.
-
- I need a user at my site removed from the list:
-
- tjohnston@nuchat.sccsi.com (the user no longer lives here)
-
- I would appreciate it if anyone here could get this to the
- appropriate person. I can't seem to find who that is. Thanks!
-
- -brett
-
- --
- Brett Watson South Coast Computing Services, Inc
- (713) 917-5000 1811 Bering, Suite 100 Houston, TX 77057
- =========================================================================
- Date: Tue, 9 Aug 1994 09:37:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Speck <speck@INTERVAL.COM>
- Subject: Re: passing data to apps
-
- >I'm still trying to find a way to pass big (> 30K) chunks of data from
- >AppleScript to applications such as HyperCard. As I look at the HC
- >dictionary it does cite:
- >
- >Class variable: A HyperTalk variable
- >Properties:
- > class type class [r/o] -- The class
- > name character [r/o] -- The name
- >
- >...but I want to set a variable, not read it.
-
-
- Here you are:
-
- on mouseUp
- copy ((the first item of (list disks)) & ":") to diskName
- copy "Untitled.GIF" to filename
-
- -- the easiest way to create variables!
- do script "global GIFTempDiskName,GIFTempFileName"
-
- copy diskName to variable "GIFTempDiskName"
- copy "Untitled.GIF" to variable "GIFTempFileName"
- end mouseUp
-
-
- This is an AppleScript within HyperCard (instead of a HyperTalk script).
-
- ---
- (And it was eleven o'clock
- which was time for a little
- something)
- =========================================================================
- Date: Tue, 9 Aug 1994 11:37:46 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
-
- OK guys
-
- I have been banging on this for about 24 hrs and I'm stuck!
-
- here is the script
-
- ---------------------------------------------------
-
- set thisDisc to (text item 1 of (list disks) & ":")
- set thisDiscTrash to thisDisc & "Trash:" as string
- set thisDiscFinder to thisDisc & "System Folder:Finder" as string
- set thisDiscSysFol to thisDisc & "System Folder:" as string
-
-
- tell application "Finder"
- move to alias thisDiscTrash from {alias thisDiscFinder}
- move to alias thisDiscTrash from {alias thisDiscSysFol}
- copy to alias discVar from {alias "R&E Server:Mac Lab:Sys
- Soft:System Folder:"}
- end tell
-
- -------------------------------------------------
-
- What it is supposed to do:
-
- when run on any Mac in our lab it will move the System Folder to the trash
- and copy in a new one. (It is part of a much grander scheme so is not as
- bizzare as it looks in isolation)
-
- What it is not doing:
-
- It is failing at the tell "Finder" nest
- As outlined above it does not work, however if I substitute actual
- pathnames instead of variables it works fine.
-
- The event Log shows the variables defined (thisDiscTrash etc) all contain
- the correct path information.
-
- I have a feeling that the solution is obvious but if you could humour me I
- wont do it again!
-
-
- Frank C.
- R&E
- =========================================================================
- Date: Tue, 9 Aug 1994 17:52:01 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: Re: ScriptWizard Freeze
-
- In Regards to your letter <199408091628.JAA10526@netcom13.netcom.com>:
- > >I posted the following to MACSCRPT and received no replies (yet) so I
- > >thought I'd go right to the source.
- > >
- > >I've been trying out the ScriptWizard Demo. I'm very impressed and
- > >considering ordering it before the current special ends (end of the month, I
- > >think).
- > >
- > >However... every time I try to do a find on a script I get some sort of
- serious
- > >system error. No error message, just a complete freeze of the Mac. Can't get
- > >to MacsBug, can't force quit, the only alternative is to restart. I tried
- this
- > >with most extensions off (except AS, of course) and still got the freeze.
- > >
- > >Is this a known problem (hopefully) with the demo? Will the real ScriptWizard
- > >work just fine?
- > >
- > >Peter Fleck
- > >fleck@astro.spa.umn.edu
-
-
- Peter:
-
- This bug is supposed to be fixed by the 1.0.1fc1 update, which we have
- posted on gaea for downloading via FTP.
-
- However, while demonstrating SW at MacWorld in Boston, we did see it
- fail just once during a Find, although we were unable to reproduce the
- failure afterwards. We will be doing more tests this week, to be sure.
- If any SW user has seen this happen with a patched 1.0.1 copy of SW
- please let us know; otherwise I think we can safely say that 1.0.1 will
- solve the problem for you.
-
- (ftp://gaea.kgs.ukans.edu/applescript/demos/SW1.01fc1.sit.hqx)
-
-
- best regards, Paul
-
- --------------------------------------------------------------------
- Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- PO Box 116, ST ALBANS, Herts. AL1 2RL. UK || fax: +44 727 856139
- & Full Moon Software, Inc || US ph: 408 253 7199
- P O Box 700237, SAN JOSE, CA 95170 || fax: 408 252 2378
- =========================================================================
- Date: Tue, 9 Aug 1994 10:56:21 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: passing data to apps
-
- >I'm still trying to find a way to pass big (> 30K) chunks of data from
- >AppleScript to applications such as HyperCard. As I look at the HC
- >dictionary it does cite:
- >
- >Class variable: A HyperTalk variable
- >Properties:
- > class type class [r/o] -- The class
- > name character [r/o] -- The name
- >
- >...but I want to set a variable, not read it.
-
- All you have to do is set the variable:
-
- I used the HyperCard message box to create a global variable named Test,
- and put a recognizable (and very clever: "This is a test.") value into it.
-
- Then I ran:
-
- tell application "HyperCard"
- get variable "Test"
- end tell
-
- which correctly returned "This is a test."
-
- Then I ran this:
-
- tell application "HyperCard"
- set variable "Test" to ((get variable "Test") & " This is some more test.")
- set variable "Test2" to "Here we go again"
- end tell
-
-
- and used the message box in HC to look at globals test and test2. Both had
- the values I expected.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 9 Aug 1994 15:55:21 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Eudora 2.1 notification again
-
- A few things Steve Dorner has said make me wonder if it's possible to write
- _AppleScript_ handlers for the 2.1 notification events AT ALL. (He says it
- works fine in Frontier.) Since 2.1 is in LATE beta, if there's a problem
- with notices I'd like to catch it before the release if I can. If anyone
- has handlers for 2.1 or 1.4.3 that are known to work, PLEASE send them to
- me. Heck, send me ANY event handlers, so I can meditate upont them....
-
- Here's the supposed syntax of the events, from the 2.1b35 dictionary; if
- anyone has a good guess as to what handlers should look like, please send
- those too.
-
- start notifying: Notify an application of things that happen
- start notifying reference -- an application to notify
- [when mail arrives/mail sent/will connect/has connected]
- --what to notify the application of
-
- stop notifying: Stop notifying applications of things that are happening
- stop notifying reference -- an application currently being notified
- [when mail arrives/mail sent/will connect/has connected]
- --the things no longer to notify it of
-
- notice: Eudora sends this event to notify an application that something happened
- notice
- [occurrence mail arrives/mail sent/will connect/has connected]
- --what happened
- [messages list]
- -- of the messages involved
-
- Many thanks in advance.
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Tue, 9 Aug 1994 13:39:48 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Dealing with unaware applications
-
- Greetings,
-
- Some collegues are looking build a library kiosk on a Macintosh. The stations
- would have network applications (MacSamson, Mosaic, gopher, webster, etc)
- available for use by students. One of their objectives is to be able to have a
- piece of software that looks for a long period of inactivity, puts a dialog box
- on the screen warning the user, then does an automatic shutdown of all open
- applications, returning the system to a standardized starting point for the
- next user who comes along.
-
- This raises the question of how to deal with AS unaware applications.
- Applications, such as Stanford's MacSamson, often present dialogs when exiting.
- AppleScript aware applications, as I understand it, should understand, "without
- questions." But, how does one deal with the others? Unfortunately AS unaware
- application are still the majority.
-
- Anyone?
-
- I would be interested in talking with anyone on the list that is looking at
- kiosk issues (I would imagine the discussion would not involve directly this
- group).
-
- Thanks,
-
- Michael
- =========================================================================
- Date: Tue, 9 Aug 1994 16:39:13 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: Dealing with unaware applications
-
- >Greetings,
- >
- >Some collegues are looking build a library kiosk on a Macintosh. The stations
- >would have network applications (MacSamson, Mosaic, gopher, webster, etc)
- >available for use by students. One of their objectives is to be able to have a
- >piece of software that looks for a long period of inactivity, puts a dialog box
- >on the screen warning the user, then does an automatic shutdown of all open
- >applications, returning the system to a standardized starting point for the
- >next user who comes along.
- >
- >This raises the question of how to deal with AS unaware applications.
- >Applications, such as Stanford's MacSamson, often present dialogs when exiting.
- >AppleScript aware applications, as I understand it, should understand, "without
- >questions." But, how does one deal with the others? Unfortunately AS unaware
- >application are still the majority.
- >
- >Anyone?
- >
- >I would be interested in talking with anyone on the list that is looking at
- >kiosk issues (I would imagine the discussion would not involve directly this
- >group).
- >
- >Thanks,
- >
- >Michael
-
-
- Cron
-
- Frank C.
- R&E
- =========================================================================
- Date: Tue, 9 Aug 1994 18:24:38 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Major memory leak
-
- I seem to have an applet, a very simple script that runs at startup and
- tells Eudora to check mail, and leaves behind a mere 4-500K (that's not a
- typo) in my system heap. When I bumped its memory allocation down, it
- grumbled that it couldn't run due to insufficient memory, but it does this
- when running in 200K.
-
- Anyone have a clue as to what's going on here?
-
- I have three other scripts that I run from OSA Menu, and none of them show
- this behavior. (When I'm using the script editor, I see about 800K in the
- system heap, btw, but it goes away on quit.)
-
- The script in question is TOO trivial to include in this post!
- But I will anyway.
-
- tell application "Eudora2.1b35"
- with timeout of 600 seconds
- activate
- connect with sending and checking
- open mailbox "In"
- end timeout
- end tell
-
- This version is shorter than the original by a couple of sets, three
- closes, and a try, but it still has the same problem. I'm running it via
- an alias in my startup items folder.
-
- ~ Kiran <groo@netcom.com>
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Tue, 9 Aug 1994 16:37:32 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: eudora 2.0.3 vs 1.4.x
-
- I just purchased and installed the commercial version of eudora. Why pay
- money for the commercial version?
-
- I thought I'd have a look at it and frankly, I really like the filters. It
- is trivial to have eudora 2.0.3 sort incoming mail and group mail from
- various mailing lists together into separate mail folders. Also, eudora
- 2.0.3 can sort the mail based upon a variety of attributes, I use by
- Subject. Thus, when I finally get around to reading through all the
- MacScripting messages on some topic, they are all grouped together
- sequentially by topic. Also, since I do not do Frontier, I have it
- automatically delete MacScripting messages that have frontier in the
- subject heading.
-
- Yes I could do all this with AppleScript but frankly, the time it would
- take me to build this nice of a sort front end is worth more than the cost
- of the commercial version. I recommend it if you are still using the
- shareware version. It's very nice.
-
- My opinion,
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Tue, 9 Aug 1994 23:17:19 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Frontmost application
-
- I don't recall if the thread about determining the frontmost application with
- scriptable Finder was resolved successfully. In any case, here is syntax
- that will give you the frontmost app:
-
- tell application "Finder"
- processes whose frontmost is true
- end tell
-
- Love them "whose" clauses.
-
- Danny Goodman
- =========================================================================
- Date: Wed, 10 Aug 1994 17:15:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Can't write new script! (not)
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >>I'm guessing that somehow, because I had just tried out Frontier Runtime
- >>but was no longer running it, there was a blank choice selected as the
- >>default scripting language.
- >
- >It's an interesting feature of Script Editor. I can't say it's wrong,
- >since it makes sense that someone would want to work in the same language
- >most of the time.
-
- The bug is that the previously-chosen scripting component may no longer be
- valid, because the user has deinstalled it (as happened in this case). The
- Script Editor really needs to check for this case.
-
- The main thing that annoys me is that I always want AppleScript to be my
- default scripting language, even though I sometimes want to use QuicKeys
- Script. However, the Script Editor keeps insisting on defaulting to the
- language I used last. Here's a semi-useful thing you might want to try: in
- your Preferences folder, you will find a file called "AppleScript Preferences"
- which, contrary to its name, is only used by the Script Editor. Open this
- with ResEdit. Inside is a number of resources, in particular one of type
- "Comp". This contains the four-byte type code for your last-chosen scripting
- component. Change its contents to the code for your preferred component,
- if necessary (eg "ascr" for AppleScript). Now do a Get Info on the resource,
- and set the Protected bit. Save your changes and close the file.
-
- Now each time you run the Script Editor, each new window will, unfortunately,
- continue defaulting to the scripting component you chose in the previous
- window. However, when you quit the Script Editor, you will get the error
- message "could not update the preferences file because of a program error".
- Then when you next start it up again, the default will revert back to the
- one you wanted.
-
- It's an imperfect workaround, but what the hey...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 9 Aug 1994 22:47:32 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontmost application
-
- At 23:17 8/9/94 -0400, Danny Goodman wrote:
- >I don't recall if the thread about determining the frontmost application with
- >scriptable Finder was resolved successfully. In any case, here is syntax
- >that will give you the frontmost app:
- >
- >tell application "Finder"
- > processes whose frontmost is true
- >end tell
- >
- >Love them "whose" clauses.
-
- Cavaet: if you get back an empty list, Finder (or something else lurking
- the System, as seen in the About This Macintosh window) is in front. Try
- this:
-
- tell application "Finder"
- activate
- processes whose frontmost is true
- end tell
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 10 Aug 1994 17:48:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Sender's address
-
- Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI> writes:
-
- >--Lawrence
- >>If you had
- >>an osax that called AEGetTheCurrentEvent, and you invoked this from within
- >>a script handler, would you get a copy of the event currently being handled?
- >
- >I thought of the osax too but does the osax get ANYTHING about the original
- >AppleEvent sent to the whole handler - I doupt.
-
- I suspect you are right. Before opening my mouth, I didn't think through the
- fact that osaxes are invoked as AppleEvent handlers themselves, so a call
- to AEGetTheCurrentEvent from within an osax would always return the event
- that invoked the osax!
-
- When AppleScript 1.0 came out, one of the first things I wished for, after
- using HyperCard for so long, was callbacks. Imagine if the scripting component
- passed the script context along with its own component instance as parameters
- of each AppleEvent it sends, or there was a special address you could send
- AppleEvents to, or something. What sort of things would you want to do with
- callbacks from an osax? You could:
-
- * ask AppleScript to spin its cursor (and give time to other applications)
- while you were performing a time-consuming operation. It could even return a
- code to you if the user hit command-dot, so you could abort what you were doing.
-
- * get and set the values of variables--both those local to currently-executing
- handlers, and global ones.
-
- * invoke handlers and evaluate general expressions within the same script
- context.
-
- * trace through the chain of currently-active handlers and events (useful
- for debugging, as well as for solving the problem that prompted this thread!).
-
- Basically, these things allow your osax to look very much as though it was
- just another handler within the script. HyperCard provides similar callback
- functionality to its externals, and again, this allows very close integration
- between those externals and HyperTalk code.
-
- Another thing I'd like to see is some way of dynamically synthesizing a
- script object from a program--really, a form of AEInstallEventHandler that
- let you install a handler into a specific script object. The program could
- then pass the script object to another program, to provide an inter-program
- callback facility via AppleEvents. Of course, what happens when you try to
- pass such a script object across the network is another issue.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 9 Aug 1994 22:46:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: How does AS know which osax to use?
-
- I encountered this problem where two osax had the same command but
- different parameters. I solved the problem with the following kind of
- arrangement. I forget whether I had to give the document path or not but
- this did allow me to specify which osax was to receive the command.
-
- tell document <name of osax here>
- blah blah blah
- end tell
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Wed, 10 Aug 1994 03:24:02 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Dealing with unaware applications
-
- >Greetings,
- >
- >Some collegues are looking build a library kiosk on a Macintosh. The stations
- >would have network applications (MacSamson, Mosaic, gopher, webster, etc)
- >available for use by students. One of their objectives is to be able to have a
- >piece of software that looks for a long period of inactivity, puts a dialog box
- >on the screen warning the user, then does an automatic shutdown of all open
- >applications, returning the system to a standardized starting point for the
- >next user who comes along.
- >
- >This raises the question of how to deal with AS unaware applications.
- >Applications, such as Stanford's MacSamson, often present dialogs when exiting.
- >AppleScript aware applications, as I understand it, should understand, "without
- >questions." But, how does one deal with the others? Unfortunately AS unaware
- >application are still the majority.
- >
- >Anyone?
- >
- >I would be interested in talking with anyone on the list that is looking at
- >kiosk issues (I would imagine the discussion would not involve directly this
- >group).
- >
- >Thanks,
- >
- >Michael
-
- For the timing, you could use the Frontier idle-time extension. Frontier
- isn't required; the extension installs a gestalt selector which allows you
- to query the idle time.
-
- For dealing with un-aware applications, I think you can easily make
- KeyQuencer do what you want. It's the best US$10 you'll ever spend!
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Wed, 10 Aug 1994 07:56:46 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
- Subject: Re: passing data to apps
-
- Thank you. Thank you.
-
- I was able to adapt your example to my purposes and it seems to work quite
- well.
-
- >Here you are:
- >
- >on mouseUp
- > copy ((the first item of (list disks)) & ":") to diskName
- > copy "Untitled.GIF" to filename
- >
- > -- the easiest way to create variables!
- > do script "global GIFTempDiskName,GIFTempFileName"
- >
- > copy diskName to variable "GIFTempDiskName"
- > copy "Untitled.GIF" to variable "GIFTempFileName"
- >end mouseUp
- >
- >
- >This is an AppleScript within HyperCard (instead of a HyperTalk script).
- >
- >---
- > (And it was eleven o'clock
- > which was time for a little
- >something)
-
- *********************************************************************
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- *********************************************************************
- =========================================================================
- Date: Wed, 10 Aug 1994 08:52:03 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: Re: Eudora 2.1 notification again
-
- At 3:55 PM 8/9/94 -0400, you wrote:
- ...
- >
- >Here's the supposed syntax of the events, from the 2.1b35 dictionary; if
- >anyone has a good guess as to what handlers should look like, please send
- >those too.
- >
- ...
-
- I don't have any scripts to send you. I tried to use notification once,
- but discovered that 2.0.x would not do its own filtering if you had
- notification turned on. All I wanted to do was count incoming messages and
- let Eudora continue to filter them. Perhaps there should be a switch on
- the notification request as to whether or not you want Eudora to do its own
- filtering?
-
- -Steve.
- =========================================================================
- Date: Wed, 10 Aug 1994 09:44:22 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Frontmost application
-
- >Cavaet: if you get back an empty list, Finder (or something else lurking
- >the System, as seen in the About This Macintosh window) is in front.
-
- Interesting, and inconsistent (what else is new!). So the Finder is an
- application, but not a process. Well, then perhaps if the "processes whose
- frontmost is true" statement returns empty, then you know to use Finder
- commands to figure out which window is on top. YAW(orkaround).
-
- Danny Goodman
- =========================================================================
- Date: Wed, 10 Aug 1994 10:33:40 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kaz Shinomiya <ZaKS@AOL.COM>
- Subject: Re: REMOVE USER!
-
- Please remove me from lists also.............ZaKS@AOL.com
- =========================================================================
- Date: Wed, 10 Aug 1994 08:47:15 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontmost application
-
- At 09:44 8/10/94 -0400, Danny Goodman wrote:
- >>Cavaet: if you get back an empty list, Finder (or something else lurking
- >>the System, as seen in the About This Macintosh window) is in front.
- >
- >Interesting, and inconsistent (what else is new!). So the Finder is an
- >application, but not a process. Well, then perhaps if the "processes whose
- >frontmost is true" statement returns empty, then you know to use Finder
- >commands to figure out which window is on top. YAW(orkaround).
-
- It gets more interesting, Danny...play with this variation as a starting
- point (yes, I know there *should* only be one process with frontmost set
- true...I'm driving defensively here):
-
- tell application "Finder"
- --activate
- set allProcs to about this macintosh
- end tell
- set frontProcs to {}
- repeat with p in allProcs
- if frontmost of p then
- --set end of frontProcs to p --same either set or copy
- copy p to end of frontProcs
- end if
- end repeat
- frontProcs
-
-
- =46or me, just now, that returned:
-
- {item 2 of {process "Eudora2.0.3Fat" of application "Finder", process
- "Script Editor" of application "Finder", process "System Software" of about
- this macintosh of application "Finder", process "UserLand Frontier=81" of
- application "Finder"}}
-
- =46inder's "about this macintosh" property is similar to the list of
- processes elements, but includes each thing which has its own bar in the
- About This Macintosh window, including the System Software catchall, rather
- than skipping Finder.
-
- And don't hard-code this too deeply: the Finder Scripting Guide strongly
- suggests that a future Finder will include Finder amongst the processes.
- So it's probably best to use the original, and then special-case:
-
- tell application "Finder"
- set frontProc to processes where frontmost is true
- end tell
- if frontProc is {} then
- -- Finder is in front
- else
- -- something else is in front
- end if
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 10 Aug 1994 11:26:10 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lee, Dale" <dale_lee@PETER.BIOLA.EDU>
- Organization: Biola University
- Subject: XCMD OSAX & MS Mail XCMD
-
- Does anyone have any experience with the xcmd osax and the Microsoft Mail
- xcmd? I'm trying to determine whether it's possible to have an applescript
- pull messages from a special mailbox and create Now Up To Date calendar
- events.
-
- (As an aside, I've noticed that the Mail xcmd has a XFCN resource, but no
- XCMD resource. Will this be a problem?)
-
- I know that the NUD events work, but I haven't any experience with the xcmd
- osax. Any out there that has?
-
- Dale Lee
- Mgr., Distributed Computer Services
- Biola University, La Mirada CA
- =========================================================================
- Date: Wed, 10 Aug 1994 15:58:40 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Dave Griffin, Ferris State University" <YD65@MUSIC.FERRIS.EDU>
- Subject: HOW 2 signoff
-
- I successfully signed off the Macintosh Scripting Systems discussion
- list and thought I would share the info with others.
-
- I enjoy the list, but I receive too many mail messages each day and have
- decided to signoff this list for now.
- *********
-
- TO: listserv@uga.cc.uga.edu
- Subject:
- message: signoff macscrpt
-
- **********
-
- The trouble that I had in signing off resulted from the fact that
- I had subscribed from a Bitnet mail address that has been changed to
- an internet mail address.
-
- The discussion list Macintosh Scripting Systems is actually
- at two different addresses:
-
- macscrpt@dartcms1.dartmouth.edu Macscrpt%dartcms1.bitnet@uga.cc.uga.edu
-
- BUT the listserv, the place to send subscribtion requests and signoff
- requests is: listserv@uga.cc.uga.edu
-
-
- I hope that this is helpful to others.
-
- Please send responses to this message to my address directly because
- I am no longer on the list...
-
- Thank you.
-
- Dave Griffin, yd65@music.FERRIS.edu
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - F E R R I S S T A T E U N I V E R S I T Y -
- - END-USER COMPUTING SUPPORT -
- - M A C I N T O S H T E C H N I C A L S U P P O R T -
- - YD65@MUSIC.FERRIS.EDU (616) 592-2485 -
- - D A V I D J G R I F F I N -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- =========================================================================
- Date: Wed, 10 Aug 1994 14:53:31 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Carl Carlson <carl@STRIDER.TFO.ARIZONA.EDU>
- Subject: Buy FileMaker Pro???
-
- I am using a HyperCard data base and HyperCard's superb string tools to
- generate mosaic-compatible html strings which I pass to my World Wide Web
- server via AS. I am pondering changing to a "real" data base program that
- supports things equivalent to:
-
- find all records that have star in field site name
-
- With HyperCard, of course, "find " only finds the first record.
-
- I looked at FileMaker Pro, but it seems to have a paltry internal scripting
- language. Wether it could assemble a html string and export it to AS seems
- unlikely.
-
- Any perspectives to offer regarding:
-
- FileMaker Pro
- Foxbase Pro
- HyperCard search XCMDs
- other?
-
- Thanks
-
- Carl A. Carlson
- U.S.Geological Survey
- =========================================================================
- Date: Wed, 10 Aug 1994 15:14:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Frontier silently truncates string literals
-
- While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
- the following construct fails as part of a script:
-
- scratchpad.stringExample = "\
- bunch of stuff...\r\
- more stuff...\r\
- still more till the\r\
- total length is greater\r\
- than 255 characters\
- "
-
- scratchpad.stringExample will have a length of 255 and the rest will be
- thrown on the floor. It would be nice if string literals could be as long
- as strings, but failing that the compiler should at least tell you it was
- doing this. Is there some patch I can make to the system to work around
- this problem? Thanks.
-
- David
-
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Wed, 10 Aug 1994 15:21:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Default folder
-
- Greetings,
-
- Currently I am using Finder Liason to set the default folder before launching
- an application. A rather bulky solution.
-
- Are there alternatives? My interest is to find to solutions. The first for
- the many nonscriptable finders and other the syntax for the scriptable finder.
-
- As always, thanks!
-
- Michael
- =========================================================================
- Date: Wed, 10 Aug 1994 16:02:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
- Subject: Re: Buy FileMaker Pro???
-
- >I am using a HyperCard data base and HyperCard's superb string tools to
- >generate mosaic-compatible html strings which I pass to my World Wide Web
- >server via AS. I am pondering changing to a "real" data base program that
- >supports things equivalent to:
- >
- >find all records that have star in field site name
- >
- >With HyperCard, of course, "find " only finds the first record.
- >
- >I looked at FileMaker Pro, but it seems to have a paltry internal scripting
- >language. Wether it could assemble a html string and export it to AS seems
- >unlikely.
- >
- >Any perspectives to offer regarding:
- >
- >FileMaker Pro
- >Foxbase Pro
- >HyperCard search XCMDs
- >other?
- >
- >Thanks
- >
- >Carl A. Carlson
- >U.S.Geological Survey
-
- Oh yes!
-
- I am using Butler from Everyware in Canada. It is a MacOS based DAL (Data
- Access Language) database. I access it with DataScript, a DAL to
- AppleScript translator (Applelink is Knowledgeable or something like that).
- The combination is sweet.
-
- Kee Nethery
- =========================================================================
- Date: Thu, 11 Aug 1994 11:22:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Buy FileMaker Pro???
-
- Carl Carlson <carl@STRIDER.TFO.ARIZONA.EDU> writes:
-
- >I am using a HyperCard data base and HyperCard's superb string tools to
- >generate mosaic-compatible html strings which I pass to my World Wide Web
- >server via AS. I am pondering changing to a "real" data base program that
- >supports things equivalent to:
- >
- >find all records that have star in field site name
- >
- >With HyperCard, of course, "find " only finds the first record.
-
- Perhaps I should point out, with HyperCard you can do something like
-
- mark cards where field "site name" contains star
-
- then use "go to next marked card" to visit all the cards matching the
- criterion.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 10 Aug 1994 18:04:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Changing the Chooser name and searching the startup disk
-
- Is there a good way to get and change the name of the user in the Sharing
- Setup control panel? I've been the osaxen Extract Resource to get the user
- name up to this point but now I want to change it. I'm worried about using Add
- Resource on the System file.
-
- Also, does anyone have a rapid way of searching the startup disk for a folder?
- I also need to be able to find multiple occurances of the folder. The script I
- wrote is dog slow but works. I would like something fast that works.
-
- Thanks a alot.
-
- Greg Francis
- =========================================================================
- Date: Thu, 11 Aug 1994 00:35:17 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Ben Clemens <BClemens@AOL.COM>
- Subject: Re: REMOVE ME PLEASE
-
- Sorry, couldn't find the protocol for unsubscribing to this list. Could the
- admin remove me please?
- =========================================================================
- Date: Wed, 10 Aug 1994 22:09:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: MacPGP
-
- Didn't someone indicate some time ago that you could script MacPGP? How
- come I can't open its dictionary?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- Berkeley Systems would have to pay me a lot more if they wanted me to
- speak for them.
- =========================================================================
- Date: Thu, 11 Aug 1994 01:13:40 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nikolaos Daniel Willmore <ndw1@COLUMBIA.EDU>
- Subject: Re: MacPGP
-
- As Pete Hinely would tell you if you were a Usenet addict, only MacPGP2.3aV1.1
- or MacPGP2.6ui have aete resources, and thus will do Apple Script.
-
- Look on ftp.csn.org in /mpj/... where README.MPJ tells the name of the directory
- with pgp stuff in it, for MacPGP2.6ui (English version).
-
- - Nik
- =========================================================================
- Date: Thu, 11 Aug 1994 03:48:51 -0300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Hutten <bhutten@FOX.NSTN.NS.CA>
- Subject: Re: Buy FileMaker Pro???
-
- >I am using a HyperCard data base and HyperCard's superb string tools to
- >generate mosaic-compatible html strings which I pass to my World Wide Web
- >server via AS. I am pondering changing to a "real" data base program that
- >supports things equivalent to:
- >
- >find all records that have star in field site name
- >
- >With HyperCard, of course, "find " only finds the first record.
- >Any perspectives to offer regarding:
- >
- >FileMaker Pro
- >Foxbase Pro
- >HyperCard search XCMDs
- >other?
-
-
-
- You could do all this easily in 4D. I've been doing some experimenting with
- generating HTML code from a 4D database and it's trivial. 4D can send and
- recieve AppleEvents, and obviously has a powerful and flexible database
- engine. Of course, it's about $600.
-
-
-
- - bill
-
-
- | Bill Hutten - bhutten@fox.nstn.ns.ca
- | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6 (902) 453 2482
- | "Hard to love, when you're bracing for impact." - Martin Amis
- =========================================================================
- Date: Thu, 11 Aug 1994 00:21:07 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier silently truncates string literals
-
- >While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
- >the following construct fails as part of a script:
- >
- >scratchpad.stringExample = "\
- > bunch of stuff...\r\
- > more stuff...\r\
- > still more till the\r\
- > total length is greater\r\
- > than 255 characters\
- > "
- >
- >scratchpad.stringExample will have a length of 255 and the rest will be
- >thrown on the floor. It would be nice if string literals could be as long
- >as strings, but failing that the compiler should at least tell you it was
- >doing this. Is there some patch I can make to the system to work around
- >this problem? Thanks.
- >
- Unfortunately, there do still seem to be a few places where the effect is
- as if a Pascal-style string were used. [There used to be more...most of
- them got taken care of in Frontier 2.]
-
- I think you can do what you want by adding together a series of shorter strings.
-
- scratchpad.stringExample = \
- "bunch of stuff...\r" +\
- "more stuff...\r" +\
- "still more till the\r" +\
- "total length is greater\r" +\
- "than 255 characters"
-
- If the string is really constant, you should also be able to write it into
- your root file as a resource (not an 'STR ' resource...those are Pascal
- strings. 'TEXT' would be appropriate (and ResEdit knows about those, so
- they are fairly simple to manipulate). Use a unique ID fairly high up but
- below 25,000, to give yourself the best chance to avoid collisions.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 11 Aug 1994 04:54:27 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Changing the Chooser name
-
- At 10:04 PM 8/10/94, Greg Francis wrote:
-
- > Is there a good way to get and change the name of the user in the Sharing
- > Setup control panel? I've been the osaxen Extract Resource to get the user
-
- I just saw notice of a new osax on sumex. Excerpts:
-
- > Users and Groups 'osax' 1.1b
- > From: Quinn <quinn@cs.uwa.edu.au>
-
- > manipulate your Users & Groups Data File from AppleScript. Many operations
- > are supported including adding, changing and deleting users, authenticating
-
- > Note: An earlier version of this osax was previously bundled with Peter N
- > Lewis' Script Daemon. This version represents a serious improvement over
-
- > [Archived as /info-mac/dev/users-and-groups-osax-11b.hqx; 39K]
- =========================================================================
- Date: Sun, 2 Nov 1997 16:19:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Frontier silently truncates string literals
-
- >>While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
- >>the following construct fails as part of a script:
- >>
- >>scratchpad.stringExample = "\
- >> bunch of stuff...\r\
- >> more stuff...\r\
- >> still more till the\r\
- >> total length is greater\r\
- >> than 255 characters\
- >> "
- >>
- >>scratchpad.stringExample will have a length of 255 and the rest will be
- >>thrown on the floor. It would be nice if string literals could be as long
- >>as strings, but failing that the compiler should at least tell you it was
- >>doing this. Is there some patch I can make to the system to work around
- >>this problem? Thanks.
- >>
- >Unfortunately, there do still seem to be a few places where the effect is
- >as if a Pascal-style string were used. [There used to be more...most of
- >them got taken care of in Frontier 2.]
- >
- >I think you can do what you want by adding together a series of shorter
- >strings.
- >
- >scratchpad.stringExample = \
- > "bunch of stuff...\r" +\
- > "more stuff...\r" +\
- > "still more till the\r" +\
- > "total length is greater\r" +\
- > "than 255 characters"
- >
- Hi John,
-
- I guess I didn't make myself sufficiently clear. I'd like to be able to use
- the original construct because it's visually cleaner, and seems to execute
- a good deal faster. (It seems that Frontier isn't being smart enough to
- realize that it could concatenate the strings at compile time.) What I'd
- like is just something that would give me a scriptError when the truncation
- occurred.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Thu, 11 Aug 1994 08:43:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Hon, Michael T" <honmt@TXPCAP.HOU.XWH.BP.COM>
- Subject: Re: Dealing with unaware applications
-
- :>This raises the question of how to deal with AS unaware applications.
- :>Applications, such as Stanford's MacSamson, often present dialogs when
- exiting
- :>AppleScript aware applications, as I understand it, should
- understand,"without
- :>questions." But, how does one deal with the others? Unfortunately AS
- unaware
- :>application are still the majority.
-
- :For dealing with un-aware applications, I think you can easily make
- :KeyQuencer do what you want. It's the best US$10 you'll ever spend!
-
- Another option (though not AppleScript) is the control panel Okey-Dokey, whose
- sole purpose in existence is to thwack the default button in a dialog after a
- specified period of time. Since it doesn't know the difference between normal
- use and when you've called for a shutdown with AppleScript, you'll want to set
- the threshold high. Otherwise, your users might be surprised by applications
- automagically hitting OK for them.
-
- You ought to find Okey-Dokey in the usual places. I believe it was written by
- Apple employees, so I think it's available somewhere on ftp.apple.com if you
- can't find it at your local info-mac mirror.
-
-
- --
- Mike Hon
- Software Consultant honmt@txpcap.hou.xwh.bp.com
- Precision Task Group Houston, TX 713/560-3017
- =========================================================================
- Date: Thu, 11 Aug 1994 10:25:50 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Frontmost application
-
- >tell application "Finder"
- >set frontProc to processes where frontmost is true
- >end tell
- >if frontProc is {} then
- > -- Finder is in front
- >else
- > -- something else is in front
- >end if
-
- Yes, this is the variation I'd use until the day the Finder comes back as a
- process.
-
- Danny
- =========================================================================
- Date: Thu, 11 Aug 1994 10:49:21 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: jsullivan <jsullivan@ARPA.MIL>
- Subject: Re: Buy FileMaker Pro???
-
- I am curious about how and why some of you are using databases to generate
- html codes. If you could contact me in person I would appreciate it!
-
- -j o n-
-
- --------------------------------------------------------------------------------
- Jonathan P. Sullivan, "Webmaster" | jsullivan@arpa.mil
- [e]
- Technology Reinvestment Project | 703/696-8950
- [v]
- 3701 N. Fairfax Drive, Arlington, VA 22203-1714 | 703/696-8956
- [f]
- _______________________________________________________________________________
- From: Macintosh Scripting Systems on Wed, Aug 10, 1994 6:55 PM
- Subject: Buy FileMaker Pro???
- To: Multiple recipients of list MACSCRPT
-
- I am using a HyperCard data base and HyperCard's superb string tools to
- generate mosaic-compatible html strings which I pass to my World Wide Web
- server via AS. I am pondering changing to a "real" data base program that
- supports things equivalent to:
-
- find all records that have star in field site name
-
- With HyperCard, of course, "find " only finds the first record.
-
- I looked at FileMaker Pro, but it seems to have a paltry internal scripting
- language. Wether it could assemble a html string and export it to AS seems
- unlikely.
-
- Any perspectives to offer regarding:
-
- FileMaker Pro
- Foxbase Pro
- HyperCard search XCMDs
- other?
-
- Thanks
-
- Carl A. Carlson
- U.S.Geological Survey
- =========================================================================
- Date: Thu, 11 Aug 1994 07:59:16 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier silently truncates string literals
-
- David Lewis wrote
-
- >While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
- >the following construct fails as part of a script:
-
- [demonstration of error not repeated again here]
-
- Indeed, after my last reply, I made a 1925 byte TEXT resource in ResEdit
- (pasted in several repeats of the start of the Gettysburg Address, and put
- it into my root as id 24990.
-
- Then I ran these two statements:
-
- rez.getResource (frontier.getFilePath(), 'TEXT', 24990, @scratchpad.aaaa)
- scratchpad.aaaa = string (scratchpad.aaaa)
-
- [The first creates a binary [TEXT] object...the second makes it a normal
- string.]
-
- BTW, there really isn't a fixed limit to the size of a string: it's just a
- handle-based block of memory containing the raw text...the size is the size
- maintained by the memory manager...no length field to overflow.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 11 Aug 1994 08:35:12 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier silently truncates string literals
-
- At 16:19 11/2/97 -0800, David Lewis wrote:
- >Hi John,
- >
- >I guess I didn't make myself sufficiently clear. I'd like to be able to use
- >the original construct because it's visually cleaner, and seems to execute
- >a good deal faster. (It seems that Frontier isn't being smart enough to
- >realize that it could concatenate the strings at compile time.) What I'd
- >like is just something that would give me a scriptError when the truncation
- >occurred.
-
- Sorry...I was speaking of what one can do now. I too would like a fix, but
- that's a future matter. I will make sure the development team at UserLand
- knows about this discussion.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Thu, 11 Aug 1994 09:39:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Default folder
- In-Reply-To: <199408102321.QAA29823@mail.netcom.com>
-
- In Mike Alldritt's Script Tools collection (or maybe it's Jon's
- Commands), there is a command to get and set the default directory.
-
- Derrick
- =========================================================================
- Date: Thu, 11 Aug 1994 20:07:24 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Christian Orellana <muscabo@DFI.AAU.DK>
- Subject: Any news on Applescript contest??
-
- Hi all!
- Does anybody know if the winners in the everyday applescript contest have
- been announced??
-
-
- Best regards -
- Christian A.Borlund Orellana
- Institute of Physics and Astronomy Aarhus University.
- ______________________________________________________
- Internet e-mail: muscabo@dfi.aau.dk
- voice: +45-86102798
- mail: Dr.Margrethesvej 11,3.th.
- 8200 Aarhus N, DENMARK.
- ______________________________________________________
- =========================================================================
- Date: Thu, 11 Aug 1994 11:08:44 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: AppleScript & Speech
-
- When I give this command to xxx, he replies, error in script, can't set
- minutes to (and then he says whatever the minutes happen to be)
-
- The script is as follows:
- set d to current date
- set x to (time of d)
- set hour to (x div 3600)
- set x to (x - (hour * 3600))
- set mins to (x div 60)
- set secs to (x - (mins * 60))
- if (hour = 0) then
- set hourstr to "midnight "
- else
- if (hour > 12) then
- set hour to (hour - 12)
- end if
- set hourstr to (hour as string) & " "
- end if
- if mins = 0 then
- if hour = 0
- set minsstr to " "
- else
- set minsstr to "o'clock "
- end if
- else
- set minsstr to (mins as string) & " "
- end if
- if secs = 0 then
- set secsstr to "exactly"
- else if secs = 1 then
- set secsstr to "and " & secs as string & " second"
- else
- set secsstr to "and " & secs as string & " seconds"
- end if
- acknowledge saying (hourstr & minsstr & secsstr) caption (time string of d)
-
- What is wrong? How do I fix it? I don't know applescript, so if someone can
- post the correct script, perhaps just by copying from the macro editor, I
- would really appreciate it.
-
-
- -Mike
- =========================================================================
- Date: Thu, 11 Aug 1994 11:18:19 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: AS Server Application
-
- I'd like to write a script that would replace a server application I wrote
- which accepts apple events. How do I make a script recognize and respond to
- an apple event, in this case with a filespec as it's data
-
- -Mike
- =========================================================================
- Date: Thu, 11 Aug 1994 11:56:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Frontier silently truncates string literals
-
- >At 16:19 11/2/97 -0800, David Lewis wrote:
- >>Hi John,
- >>
- >>I guess I didn't make myself sufficiently clear. I'd like to be able to use
- >>the original construct because it's visually cleaner, and seems to execute
- >>a good deal faster. (It seems that Frontier isn't being smart enough to
- >>realize that it could concatenate the strings at compile time.) What I'd
- >>like is just something that would give me a scriptError when the truncation
- >>occurred.
- >
- >Sorry...I was speaking of what one can do now. I too would like a fix, but
- >that's a future matter. I will make sure the development team at UserLand
- >knows about this discussion.
- >
- Thanks. I guess I'll put a warning in the next version of the KeyQuencer
- example code.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Thu, 11 Aug 1994 15:21:35 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: jsullivan <jsullivan@ARPA.MIL>
- Subject: Re: XCMD OSAX & MS Mail XCMD
-
- I would be interested in hearing from anyone who has been able to do anything
- with Microsoft Mail using AppleScript or QuicKeys. I would really like to
- find a way to sort my incoming mail and do some rules based stuff.
-
- -j o n-
-
- --------------------------------------------------------------------------------
- Jonathan P. Sullivan, "Webmaster" | jsullivan@arpa.mil
- [e]
- Technology Reinvestment Project | 703/696-8947
- [v]
- 3701 N. Fairfax Drive, Arlington, VA 22203-1714 | 703/696-8956
- [f]
- _______________________________________________________________________________
- From: Macintosh Scripting Systems on Wed, Aug 10, 1994 4:28 PM
- Subject: XCMD OSAX & MS Mail XCMD
- To: Multiple recipients of list MACSCRPT
-
- Does anyone have any experience with the xcmd osax and the Microsoft Mail
- xcmd? I'm trying to determine whether it's possible to have an applescript
- pull messages from a special mailbox and create Now Up To Date calendar
- events.
-
- (As an aside, I've noticed that the Mail xcmd has a XFCN resource, but no
- XCMD resource. Will this be a problem?)
-
- I know that the NUD events work, but I haven't any experience with the xcmd
- osax. Any out there that has?
-
- Dale Lee
- Mgr., Distributed Computer Services
- Biola University, La Mirada CA
- =========================================================================
- Date: Thu, 11 Aug 1994 15:41:02 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: jsullivan <jsullivan@ARPA.MIL>
- Subject: Cursor coordinates/Where FAQ?
-
- Having failed to locate a Macintosh application for creating HTML image maps,
- I decided I would write an AppleScript that would permit me to draw a
- rectangle on the screen and then deliver the coordinates of the upper-left,
- lower-right corners to the clipboard. Being a novice however, I am not quite
- sure how to do this. I know that you can get the coordinates of a window
- that already exists, but I need to draw an outline around a screen image.
- Even if I could get the coordinates of a single click that would be fine.
-
- Also, where is the FAQ for this list or for AS?
- =========================================================================
- Date: Thu, 11 Aug 1994 22:45:30 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Christian Orellana <muscabo@DFI.AAU.DK>
- Subject: Re: Default folder
-
- >In Mike Alldritt's Script Tools collection (or maybe it's Jon's
- >Commands), there is a command to get and set the default directory.
- >
- >Derrick
-
- As far as I recall that only sets the default directory for subsequent
- calls to choose files/folders from that same osax.
-
- Best regards -
- Christian A.Borlund Orellana
- Institute of Physics and Astronomy Aarhus University.
- ______________________________________________________
- Internet e-mail: muscabo@dfi.aau.dk
- voice: +45-86102798
- mail: Dr.Margrethesvej 11,3.th.
- 8200 Aarhus N, DENMARK.
- ______________________________________________________
- =========================================================================
- Date: Thu, 11 Aug 1994 16:35:18 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: broberts@UISM.BU.EDU
- Subject: Re: Buy FileMaker Pro???
-
- >Carl Carlson <carl@STRIDER.TFO.ARIZONA.EDU> writes:
-
-
- >I am using a HyperCard data base and HyperCard's superb string tools to
-
- >generate mosaic-compatible html strings which I pass to my World Wide Web
-
- >server via AS. I am pondering changing to a "real" data base program tha
-
- >supports things equivalent to:
-
- >
-
- >find all records that have star in field site name . . .
-
-
- I'm using FileMaker Pro with AS to serve docs (graphics, actually) via www.
- I created a couple of "computed" fields in the database that construct valid
- URLs from other fields in records found in the search, and do the html
- formatting of the results in AS.
- So far, it works very well, but I have just a few records in the database.
- Ultimately there will be a couple hundred records, and other threads on this
- list have raised performance questions around FileMaker. I'm hoping that running
- it all on an AWS 9150 will help in that regard.
-
- Bill Robertson
- Boston University Microcomputer Support Services
- aka broberts@uism.bu.edu billr@bu.edu
- http://academy-www.bu.edu/
- =========================================================================
- Date: Thu, 11 Aug 1994 14:39:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Cursor coordinates/Where FAQ?
-
- >Having failed to locate a Macintosh application for creating HTML image maps,
- >I decided I would write an AppleScript that would permit me to draw a
- >rectangle on the screen and then deliver the coordinates of the upper-left,
- >lower-right corners to the clipboard. Being a novice however, I am not quite
- >sure how to do this. I know that you can get the coordinates of a window
- >that already exists, but I need to draw an outline around a screen image.
- >Even if I could get the coordinates of a single click that would be fine.
- >
- >Also, where is the FAQ for this list or for AS?
-
- Ah! My suggestion for creating HTML pages is to get MacWeb and go looking
- for pages that have the characteristics you desire. Then in the menus,
- select View Source to see the text of the html that created the screen you
- are looking at. Learn by example!
-
- Kee
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Thu, 11 Aug 1994 14:53:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Eudora scripts
-
- > I'm having trouble figuring the syntax of AppleScript commands in
- >Eudora. It seems pretty confusing to me.
- >
- >If anyone has any Eudora AppleScripts that they can send me, I would
- >appreciate it.
-
-
- -- These are scripts that run within HyperCard. The Copy Field portion
- -- just grabs my message out of a HyperCard field.
-
- -- Creates and sends a message
-
- property outBox : "Out"
- property trashBox : "Trash"
- property defaults : ""
- property inBox : "In"
- property asBox : "AppleScript list"
- property changed_C : 0
- property msgbody : ""
-
- on mouseUp
- sendmail()
- end mouseUp
-
- on sendmail()
- copy field "arf" to msgbody
- --
- -- The tricky part to this script is the weird syntax for
- -- creating a new message.
- --
- -- Important tip: "Message 0" is shorthand for the current message
- --
- tell application "Eudora2.0.3"
- make message InsertHere end of mailbox outBox of mail folder ""
- set field "to" of message 0 to "kee@mail.kagi.com"
- set field "subject" of message 0 to "this test"
- set field "" of message 0 to msgbody
- queue message 0
- end tell
- end sendmail
-
- -- counts the mail in my eudora inbox, reads all the subjects,
- -- puts them into a list, puts the list into a field.
-
- property outBox : "Out"
- property trashBox : "Trash"
- property defaults : ""
- property inBox : "In"
- property asBox : "AppleScript list"
- property changed_C : 0
- property thedata : ""
-
- on mouseUp
- run
- end mouseUp
-
- on run
- set messageCount to {}
- tell application "Eudora2.0.3"
- activate
- set messageCount to count message of mailbox inBox of mail folder ""
- --display dialog "There are " & messageCount & " messages to process."
- repeat with i from messageCount to 1 by -1
- try
- set holder to Subject of message i of mailbox inBox of mail folder defaults
- set thedata to thedata & return & (holder as text)
-
- on error
- tell me
- --nothing
- end tell
- end try
- end repeat
-
- end tell
- copy thedata to field "arf"
- -- display dialog messageCount & " files processed," &
- -- changed_C & "files moved." as string
- end run
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Thu, 11 Aug 1994 15:14:07 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brad Schrick <brad@BATNET.COM>
- Subject: Re: Cursor coordinates/Where FAQ?
-
- Maps are discussed on Chuck Shotton's excellent pages about his excellent
- HTTP server, MacHTTP, which is also available there. Check out the
- 'Examples' page:
-
- http://www.uth.tmc.edu/mac_info/machttp_info.html
-
- >Having failed to locate a Macintosh application for creating HTML image maps,
- >I decided I would write an AppleScript that would permit me to draw a
- >rectangle on the screen and then deliver the coordinates of the upper-left,
- >lower-right corners to the clipboard. Being a novice however, I am not quite
- >sure how to do this. I know that you can get the coordinates of a window
- >that already exists, but I need to draw an outline around a screen image.
- >Even if I could get the coordinates of a single click that would be fine.
- >
- >Also, where is the FAQ for this list or for AS?
-
- -----------------------------------------------------------------------------
- Brad Schrick or try
- Engineering Software Concepts, Inc. Embry-Riddle Aeronautical University
- 236 Hamilton Avenue / PO Box 66 600 S Clyde Morris Blvd
- Palo Alto, California 94301 Daytona Beach, FL 32114
- (415) 325 4321 (messages) (904) 226 6200
- brad@ape.com schrickb@db.erau.edu
- esc@isl.stanford.edu http://macwww.db.erau.edu/
- ----------------------------------------------------------------------------
- -
- =========================================================================
- Date: Thu, 11 Aug 1994 18:33:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: finder processes...
-
- When I try something like:
-
- tell application "Finder"
- every process
- end tell
-
- I get only application processes. But when I use "list processes" from the
- Script Tools osaxen, I get all processes, even faceless, background apps.
- For my simple script, I'd like to have all processes listed. Is there
- anyway to duplicate this behavior with the scriptable finder?
-
- -Steve.
-
-
- +--------------------------------------------------------------+
- | Steven L. Rohall |
- | ________ _ ______ ______ |
- | 55 Walkers Brook Drive / / \ / / / / |
- | Reading, MA 01867-3297 / /___\ /______ / |
- | Tel: (617)942-2000 / / \ // |
- | Fax: (617)942-7100 / / \/______//______/ |
- | slrohall@tasc.com |
- | (MIME-conformant mail welcome.) |
- +--------------------------------------------------------------+
- =========================================================================
- Date: Thu, 11 Aug 1994 15:46:34 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Default folder
- In-Reply-To: <199408112117.OAA02359@mail2.netcom.com>
-
- I don't have a Mac in front of me, so I could be wrong, but in my notes
- it's got a get default folder and set default folder (as part of the
- choose files and folders scripting addition). I'm sure Mark will see this
- and clarify.
-
- Derrick
- =========================================================================
- Date: Fri, 12 Aug 1994 02:36:28 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: Re: Visual cues that an AppleScript is running
-
- Taylor Leaming H3-283 <tobor.sps.mot.com!leamingt> writes:
-
- > Greetings,
- >
- Warning: This particular reply may be totally unrelated to your needs... =)
- > I know this may sound like a lame question, and there may even be such
- > something out there somewhere already that does this, but I don't have a
- lot
- > of time to go hunting (and I'm not as involved in AS'ing as many of you
- > obviously are) and this is certainly the right place to ask:
- >
- > Is there some extension, OSAX or such that will give me a visual indication
- > that an AppleScript is running, other than a generic spinning cursor?
- >
- Not that I know of, but see my script below...
-
- If SITcomm supported the object model (see my other posting griping about
- this) then I'd say you could just change the title of the main window to
- something like "Hey, I'm tryin' to run a script here..." =)
-
- > This is bad, since my wife (and myself) will routinely use some
- AppleScripts
- > that I have written for SITcomm to automate connections and such, but on
- > occassion the actions will fail and AS will continue to run until it times
- > out. She (i) will notice this, and, forgetting that AS is still running
- Sure... blame it on the woman... ;-)
- > try to do whatever and can't until the script has been terminated.
- > A visual indicator besides the boring spinning cursor would be very useful.
- >
- I script SITcomm extensively for the purpose of autologins as well, and have
- encountered several different problems. I'm not sure which one you mean, so
- I'll try to cover as many as I can. Here's a sample script that should show
- you what I mean:
-
- [Look out for wraparound lines... Oh, and * is the tm sign]
- --cut here--
- copy "Host Name Here" to MySession -- change this to the of your session
- copy "UserId Here" to UserID -- you get the picture...
- copy "Password Here" to Password
- copy "UserID Prompt Here" to UserIDPrompt
- copy "Password Prompt Here" to PasswordPrompt
- copy 20 to TimeoutLength
-
- (*
- Pretty much everything you'll need to change is up here in a variable.
- On the other hand, it doesn't need to be. All except TimeoutLength and
- MySession are only used in the one place, so changing them to literals
- there won't break anything...
-
- This script by Jay Hebert <jayh@laison.w8hd.org>
- If you use it, please leave a comment line attributing me somehow
- *)
-
- tell application "SITcomm*"
- activate
- copy (Get Address List) to AddrList
- copy (Get Current Address) to CurAdd
- copy (Get Connection Status) to ConStat
- if AddrList contains MySession then
- if ConStat = 0 then
- tell me to GetItOn(MySession)
- else if ConStat = -1 then
- beep
- display dialog "SITcomm was unable to determine the conn
- ection status."
- buttons {"Cancel"} default button 1
- else if ConStat = 1 then
- if CurAdd is MySession then
- display dialog "You are already connected to \""
- & MySession & "!\""
- buttons {"Cancel", "Re-Login"} default button 1
- Disconnect
- tell me to GetItOn(MySession)
- else
- display dialog "Continuing will close your curre
- nt connection with \"" &
- CurAdd & ".\" Proceed?" with icon 0
- Disconnect
- tell me to GetItOn(MySession)
- end if
- end if
- else
- display dialog "The address book entry \"" & MySession & "\" doe
- sn't
- exist!" buttons {"Cancel"} default button 1
- end if
- end tell
-
- on GetItOn(MySession)
- tell application "SITcomm*"
- Connect MySession
- -- The first problem is one of not getting the prompts you expec
- t...
- -- No big deal, use timeouts with trys... Unfortunately, "with
- timeout"
- --doesn't seem to work... so do it like this...
- try
- --Send Text return & return
- --That was necessary for my host... you can probably lea
- ve it commented...
- Wait For Text UserIDPrompt timeout TimeoutLength
- if the result is "" then error
- Send Text UserID & return
- Wait For Text PasswordPrompt timeout TimeoutLength
- if the result is "" then error
- Send Text Password & return
- on error
- display dialog "Something went wrong. You may continue m
- anually." buttons
- {"Cancel"} default button 1
- end try
- --The next problem is that sometimes my password has been change
- d, or my
- account
- --deleted... So I try to cover all bases for what can be thrown
- at me next:
- copy (Wait For Text {"Do you wish to register as a new user?", "
- UserID:",
- "[more]", ">"}) to amIin
- --amIin will contain whichever item in the list tripped the Wait
- .
-
- if amIin is in {"[more]", ">"} then
- -- [more] tells me I'm viewing a long login banner...
- -- > is my system's prompt
- -- Those are the only two things that I could see and be
- logged in.
- -- Here I could change directories, or whatever I want t
- o do when I first
- log on.
- display dialog "That's all I'm gonna do... take over!"
- else
- if amIin is "Do you wish to register as a new user?" the
- n
- --since I don't want to do that...
- Send Text "n" & return
- --That puts me back to a UserID prompt...
- end if
- --Either I'm being offered to autoregister, or I'm being
- refused
- completely...
- --In both cases, I'll let the user decide:
- copy (display dialog "Could not log in to \"" & MySessio
- n & ".\" The
- supplied UserID or password is invalid." buttons {"Disconnect", "Manual
- Logon"} default button 1) to NowWhat
- if button returned of NowWhat is "Disconnect" then
- Disconnect
- end if
- end if
- end tell
- end GetItOn
- --cut here--
-
- > For example, a little AppleScript icon in the menu bar that blinks on and
- off,
- > or a trite message or even just the AS name, in the same fashion as
- SuperClock,
- > in the menu bar. Perhaps maybe a dialog box with a CANCEL to obviously
- kill
- > the script.
- This script is more along the lines of that last option... =)
- I don't use Frontier much, but maybe someone who does can suggest an easy way
- to use Menu Sharing to stick a dummy menu up in the menu bar (this would
- probably be pretty easy too)
-
- >
- > Does anybody have suggestions, ideas or solutions?
-
- If you don't wanna try to reassemble this at home on your mac, I've posted
- this to gaea as well...
- My guess is to look for it at around (this is a guess... I sent it to
- /incoming)
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/AutoLogin.sit.hqx
-
- >
- > Thanks in advance,
- >
- > Taylor
- Regards,
- Jay Hebert
- jayh@laison.w8hd.org
-
-
- --
-
- ==========================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Fri, 12 Aug 1994 15:04:54 EETDST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI>
- Subject: Re: Sender's Address
- In-Reply-To: <9408110407.AA12860@smtp.tele.fi>; from "Automatic digest
- processor" at Aug 11, 94 12:00 am
-
- >>>an osax that called AEGetTheCurrentEvent, and you invoked this from within
- >>>a script handler, would you get a copy of the event currently being handled?
- >>
- >>I thought of the osax too but does the osax get ANYTHING about the original
- >>AppleEvent sent to the whole handler - I doupt.
- >
- >I suspect you are right. Before opening my mouth, I didn't think through the
- >fact that osaxes are invoked as AppleEvent handlers themselves, so a call
- >to AEGetTheCurrentEvent from within an osax would always return the event
- >that invoked the osax!
-
- Sad but true. I made an osax that would give me the address of the apple
- events (incoming AE, reply AE and AEGetTheCurrentEvent). All had the
- same address which was Current Process (psn=2).
-
- This still bugs me a bit and one thought came into my mind (forgive me).
- If I can ask the current apple event from the system then why can't I
- get all the AE's that are still waiting to be handled. I mean, System
- has the list of currently handled AE's SOMEWHERE - if I could find that
- list I could check the first psn<>2 AE. But WHERE is the list or HOW
- can I get my hands on it... IM VI nor IM InterApp Communications won't
- tell it - or I'm not trying enough.
-
- - Loimu
- =========================================================================
- Date: Fri, 12 Aug 1994 08:05:39 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
- Subject: Re: Second edition of Tao book
- In-Reply-To: <199407291815.AA16412@firefly.prairienet.org>
-
- Where esle can we order the book?
- -Terry
- =========================================================================
- Date: Fri, 12 Aug 1994 10:14:14 +0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Al Austin <aaustin@CMR.COM>
- Subject: Scripting Problem - Please Help
-
- Hello, everyone ...
-
- I just found this list yesterday, so please excuse me if this problem
- has been discussed here before.
-
- We've been working with AppleScript 1.1 for about two weeks, trying to
- automate some production processes, and have come across an interesting
- situation while writing a script to copy files over a network.
- Hopefully, someone else has also seen this and can offer an explanation
- and/or a solution. We're using a Quadra 950 with 24mb of RAM and System
- 7.1.
-
- We have a script that we've saved as an application. It prompts a user
- for an id number which corresponds to one or more folders residing on
- one or more Novell network drives. The script goes out to the network,
- finds the folder(s) and copies them to a local drive. No problems so
- far ... everything works fine.
-
- After we process the data on the local drive, we need to get rid of it,
- so we've written a cleanup script. This also works fine.
-
- This is the problem: If we execute the transfer script, it remains
- selected in the Finder when it completes execution. This is normal
- (last icon acted upon and all that) and is to be expected. But, it
- remains selected when we try to do something else, as if we're shift-clicking,
- whether we try to open a mounted drive or run another script, and when the
- second script starts to run, the first script executes as well. For example,
- if we run the transfer script, wait for it to complete execution and quit,
- then immediately run the cleanup script, the transfer script will run
- again at the same time as the cleanup script. We're not shift-clicking
- to select multiple icons. In fact, we've set up aliases on the desktop so the
- end-user doesn't even need to open the hard drive window. We've assumed
- that we might be jumping into the second program too quickly, but have
- disproved that. We can sit until the cows come home and there will still
- be two icons selected. If we run the transfer script and let it complete
- and then double-click on a mounted network drive to verify the copy, the
- transfer script will start up again. This is most irritating.
-
- This problem only occurs (so far as we've been able to determine) when
- finderLib is loaded and a tell finderLib instruction contains two or more
- commands, as in:
-
- with timeout of 3000 seconds
- tell finderLib
- copyFiles from sourceFolder to destVolume with warning
- moveFiles from (listFiles at destFolder) to "wherever"
- with warning
- moveFilesToTrash at destFolder
- emptyTrash()
- end tell
- end timeout
-
- In the above example, duplicate selection does not occur if three of
- the four steps inside the tell statement are commented out. Once any
- two are executed, the duplication problem occurs. We've also tried
- eliminating the timeout, which doesn't solve the problem. Neither does
- reducing the length of the timeout, although we need the longer timeout
- because some folders are over 200mb in size. We've also tried
- breaking this section out into four separate tell statements. It buys us
- an additional command execution, but the problem persists. We've stepped
- through all the code prior to this timeout section and never have a problem.
- Right now, we're working around the problem by having the operator press
- the TAB key at least twice before selecting any icon after the script
- completes and quits. An inelegant solution, to say the least.
-
- Anyone have any ideas or suggestions, or has anyone else had a similar
- experience?
-
- Thanks in advance for any help.
-
-
- ... Al
- =========================================================================
- Date: Fri, 12 Aug 1994 11:23:48 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Visual cues that an AppleScript is running
-
- > Is there some extension, OSAX or such that will give me a visual indication
- > that an AppleScript is running, other than a generic spinning cursor?
-
- If you use FaceSpan as an interface builder for your app, it produces a
- spinning wheel while scripts execute.
-
- Danny Goodman
- =========================================================================
- Date: Fri, 12 Aug 1994 11:56:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roy Eassa <re@ZORK.TIAC.NET>
- Subject: Re: Second edition of Tao book
-
- >Where esle can we order the book?
-
- I don't know. I picked it up at the Expo. I imagine the usual sources
- technically-oriented bookstores, mail-order places) will have it.
-
-
- --
- Roy Eassa
- re@tiac.net
- =========================================================================
- Date: Fri, 12 Aug 1994 12:03:14 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Hanson <chanson@SHORE.NET>
- Subject: Client Server scripts over AppleTalk
-
- I was wondering if anyone had made a pair of scripts to hand information to
- eachother over a appletalk network I have worked on Scripts for a while, but
- never tried this, and it is always more fun to have a example to work off of.
- I do not care waht it does just looking for the communication aspect.
- -chanson@shore.net
- =========================================================================
- Date: Fri, 12 Aug 1994 12:42:38 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: AppleScript & Speech
-
- >When I give this command to xxx, he replies, error in script, can't set
- >minutes to (and then he says whatever the minutes happen to be)
-
- >The script is as follows:
- >set d to current date
- >set x to (time of d)
- >set hour to (x div 3600)
- >set x to (x - (hour * 3600))
- >set mins to (x div 60)
- >set secs to (x - (mins * 60))
- >if (hour = 0) then
- >set hourstr to "midnight "
- >else
- >if (hour > 12) then
- >set hour to (hour - 12)
- >end if
- >set hourstr to (hour as string) & " "
- >end if
- >if mins = 0 then
- >if hour = 0
- >set minsstr to " "
- >else
- >set minsstr to "o'clock "
- >end if
- >else
- >set minsstr to (mins as string) & " "
- >end if
- >if secs = 0 then
- >set secsstr to "exactly"
- >else if secs = 1 then
- >set secsstr to "and " & secs as string & " second"
- >else
- >set secsstr to "and " & secs as string & " seconds"
- >end if
- >acknowledge saying (hourstr & minsstr & secsstr) caption (time string of d)
-
- >What is wrong? How do I fix it? I don't know applescript, so if someone can
- >post the correct script, perhaps just by copying from the macro editor, I
- >would really appreciate it.
-
-
- >-Mike
-
- --------------------------------------------------------
-
- Mike,
-
- I know this answer is arriving about (1 * day) late but I get the AppleScript
- forum in digest form.
-
- I'm almost certain that you have the "Audio CD" scripting addition from GTQ
- Library installed. "mins" and "secs" are properties of the track information for
- audio CD. If you take this scripting addition out of your "Scripting Addition"
- folder then recompile (check syntax) you should have no problems. The other
- solution is to change the name of your variables.
-
- I suggest that you use the script editor's "AppleScript Formatting" feature to
- set colors to represent variables and application keyword (considering you have
- a color capable mac and color monitor). I copied your script to the script
- monitor and compiled it and instantly noticed that you were trying to set the
- result of a formula to an application keyword (that's a no-no). Since I've
- worked with scripting the audio CD, I knew which scripting addition was the
- culprit.
-
- Anyway, I hope that answers your question.
-
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- =========================================================================
- Date: Fri, 12 Aug 1994 09:44:45 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Second edition of Tao book
- In-Reply-To: <199408121614.JAA25317@mail2.netcom.com>
-
- I'm not sure how many BMUG has left over from the show, but we should get
- our stuff back from Boston in a week or so (they come back slow boat).
- You could order it directly from them when that happens.
-
- It should start showing up in bookstores in a month or so. I don't
- honestly know Hayden's production schedule for getting them out to stores.
-
- One would think I would know more about this, wouldn't one?
-
- Derrick
- BMUG's lines:
- 510-549-2684 business office (voicemail system, be patient)
- 510-849-9026 fax
-
- Hope that helps
- =========================================================================
- Date: Fri, 12 Aug 1994 14:02:31 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: finder processes...
- In-Reply-To: <no.id> from "Steven L. Rohall" at Aug 11, 94 06:33:00 pm
-
- --Steven L. Rohall wrote:
- >
- >When I try something like:
- >
- >tell application "Finder"
- > every process
- >end tell
- >
- >I get only application processes. But when I use "list processes" from the
- >Script Tools osaxen, I get all processes, even faceless, background apps.
- >For my simple script, I'd like to have all processes listed. Is there
- >anyway to duplicate this behavior with the scriptable finder?
-
- Unfortunately, the Scriptable Finder doesn't seem to know about
- background processes. You can use the about this macintosh property of
- the SF to get the Finder as a process and the System Software as a
- process, but that's about it.
-
- -Hades
- =========================================================================
- Date: Fri, 12 Aug 1994 15:31:21 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Client Server scripts over AppleTalk
-
- >I was wondering if anyone had made a pair of scripts to hand information to
- >eachother over a appletalk network I have worked on Scripts for a while, but
- >never tried this, and it is always more fun to have a example to work off of.
- > I do not care waht it does just looking for the communication aspect.
- >-chanson@shore.net
-
- I have been using applescript to add a client - server element to my
- Filemaker databases. There are some flaky things about it but it has a lot
- of potential. The key is to have an applet running on both the client and
- host Mac and program linking under sharing setup must be on. Once you have
- done that you can call routines across the network with the following
- simple command:
- tell application "host applet" of machine "host machine" of zone "host
- machines zone" to hostRoutine()
- It will then execute the command. They can be tricky to debug so you will
- want to get them working properly locally before running them over the net.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Fri, 12 Aug 1994 15:15:57 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: The Netnews Filter Agent for the Macintosh!
-
- <I just put this in the /incoming directory as NewNews.sit.hqx>
-
- The Netnews Filter Agent for the Macintosh. A suite of three
- applications that make dealing with Netnews simple.
-
- By John C. Schettino, Jr. (js12@gte.com)
-
- These applications were developed with AppleScript 1.1 and FaceSpan
- 1.0 using the Scripter's Toolkit.
-
- A preliminary version of these applications won an Honorable Mention in the
- "Everyday AppleScript Contest". This version represents the first public release
- of that software.
-
- The Netnews Filter Agent consists of three Applications:
-
- * The NetNews Grazer (NNG)
-
- This is an AppleScript application that interacts with an NNTP News server.
- It will check for new messages on a regular basis, and will either
- scan the subjects of the new messages or send email when new messages arrive.
-
- * The NetNews Grazer Prefs
-
- This is a FaceSpan application that lets you specify:
-
- - The NNTP Server Name
- - The SMTP Server Name
- - The rate (in minutes) that NNG checks for new messages
- - The email address to send the notifying email message from
- - The email address to send the notifying email message to
- - The set of news groups to watch, and what to look for
-
- For each group, you may specify a list of substrings that you want to
- look for. When a subject containing one of these strings is found, NNG saves the
- article number.
-
- If you do not specify any search strings for a group, you
- will be notified via email (using SMTP) whenever new news arrives.
-
- * Read interesting news
-
- This is a FaceSpan application that lets you read the matching news articles.
- It provides basic reading capabilities and is patterned after
- the Internews reader from Dartmouth.
-
- Cost:
- -----
- I've put a lot of effort into this project, so I've decided to
- release locked versions of these three apps as Freeware. You may use
- them without guilt.
-
- With a $20 US shareware payment you'll get an upgraded version. Please
- see the enclosed Read Me file.
-
- System Requirements:
- --------------------
- Access to an NNTP News Server. Access to an SMTP Mail Server (if you want email
- notification.)
-
- System 7.x, AppleScript 1.1, FaceSpan 1.0, and the MacTCP system
- extensions. The TCP/IP and AppleScript 1.1 Scripting Additions.
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 12 Aug 1994 13:16:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: Default folder
-
- Hello All,
-
- The Set Default Folder command (in the Choose Files & Folders addition of
- Script Tools) changes the default volume and folder of the *current*
- application.
-
- The effect of the Set Default Folder command is dependant on the behaviour
- of the other software components you are using. For instance, some
- applications (like the Finder I think) activly manipulate the default
- volume and folder.
-
- You can use the Set Default Folder and the File IO commands of Script Tools
- together. I have also found that the following *generally* works:
-
- tell applications "XYZ App"
- set default folder (choose folder with prompt "Pick a default folder:")
- open "my file" -- or whatever
- end tell
-
- Note that in this example, the Set Default Folder command is executed in
- the context of the application. However, the following code would have a
- completly different effect.
-
- set default folder with prompt "Pick a default folder:"
- tell application "XYZ App"
- open ...
- end tell
-
- A final note: apparently, in System 7.5, the way the default volume and
- folder setting operates is going to change, and so the Set Default Folder
- may not work as it does now.
-
- -Mark
- =========================================================================
- Date: Fri, 12 Aug 1994 16:33:23 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gib Veconi <Gib_Veconi@SCP.COM>
- Subject: Calling AppleEvents with AI
-
- I'm trying to find some info on how to call AppleEvents directly from
- AppleScript so I can control an AE-aware, but non-scriptable, application (
- GeoQuery). I've opened scripts before which have shown what looks like
- AppleEvent notation in angle brackets, but I can't find any reference in the
- AppleScript manuals to explain this usage.
-
- If anyone knows a good source for this info (or has done work with GeoQuery
- and AppleScript), I'd be grateful to hear from you. Thanks.
-
- Gib Veconi
- gib@scp.com
- =========================================================================
- Date: Fri, 12 Aug 1994 13:45:02 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Calling AppleEvents with AI
- In-Reply-To: <199408122032.NAA05740@mail.netcom.com> from "Gib Veconi" at Aug
- 12, 94 04:33:23 pm
-
- >
- > I'm trying to find some info on how to call AppleEvents directly from
- > AppleScript so I can control an AE-aware, but non-scriptable, application (
- > GeoQuery). I've opened scripts before which have shown what looks like
- > AppleEvent notation in angle brackets, but I can't find any reference in the
- > AppleScript manuals to explain this usage.
- >
- > If anyone knows a good source for this info (or has done work with GeoQuery
- > and AppleScript), I'd be grateful to hear from you. Thanks.
- >
- > Gib Veconi
- > gib@scp.com
- >
- I haven't seen too much about that notation, but the format is
-
- Tell application "whatever" to
- <<event XXXXYYYY>> <<class ZZZZ>> some value
- End Tell
-
- Of course "<<" and ">>" are realy opt-\ and shift-opt-\. There's a trick to
- getting AppleScript to display a compiled script in that format by getting
- rid of the application it refers to, but I can't remember the details offhand.
-
- I've worked a little bit with GeoQuery (but in 4D rather than AppleScript);
- their AppleEvent handling is *very* weird - it involves a 2-way conversation
- where you send it a request and it will send you one or more separate events
- with the results (rather than using the AppleEvent reply). For anyone working
- with 4D who wants to figure out their events, I have the demo available at
- ftp://ftp.netcom.com/pub/isis/System7Pack/S7P.GeoQuery.hqx.
-
- --
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: file://ftp.netcom.com/pub/isis/home.html
- =========================================================================
- Date: Fri, 12 Aug 1994 17:33:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: NetNews scripts
-
- Everyone,
-
- You'll find John Schettino's NetNews scripts in
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/NetNews.sit.hqx
-
-
- Enjoy and have a nice weekend.
-
- pf
- =========================================================================
- Date: Fri, 12 Aug 1994 15:54:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: ScriptWizard v. Script Editor
-
- I've been playing around with a demo version of Script Wizard, trying to
- see if I liked it enough to push for a purchase. It seems very cool,
- except for two problems:
-
- A) It's slow -- opening up two AS compiled scripts (saved as apps), with a
- total of 64K of code, took about 21 seconds longer than in Script Editor,
- for example. SE took 26 seconds to start up and load both scripts in ; SW
- took about 47 seconds; you might want to knock off half a second for
- clicking the 'this is a demo' dialog box. Similarly, saving and compiling
- times are also longer. Anybody know if there's a fix for this?
-
- B) It's jerky -- when it's slow, it's not consistently slow. It freezes
- for a second, then releases, etc. It's not as smooth as SE...
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Sat, 13 Aug 1994 13:29:26 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dario Lopez K=E4sten <cl2dlope@HAL.CLING.GU.SE>
- Subject: Re: Sender's address
-
- (Stuff deleted)
- >Just a thought: my AppleEvent utilities for HyperCard include an XFCN calle=
- d
- >AEGetTheCurrentEvent, which calls the AppleEvent Manager routine of the sam=
- e
- >name. With current versions of HyperCard, you can call this from within an
- >"On AppleEvent" handler, and get a complete copy of the current event this =
- way.
- >
- >My idea is: would a similar thing work from AppleScript as well? If you had
- >an osax that called AEGetTheCurrentEvent, and you invoked this from within
- >a script handler, would you get a copy of the event currently being handled=
- ?
- >
- >Yeah, sure, I could probably write it first, and then find out whether it
- >works,
- >but you know what us lazy programmers are like... :-)
- >
- >Lawrence D'Oliveiro fone: +64-7-856-2889
- >Info & Tech Services Division fax: +64-7-838-4066
- >University of Waikato electric mail: ldo@waikato.ac.nz
- >Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
-
- I think that the ability to manipulate the AERecord from with in
- AppleScript is a good idea in general. Too bad it is not implemeted
- directly in AS.
-
- /dario
-
- ____________________________________________________________________________=
- __
- Dario Lopez K=E4sten, student of | S=F6dra v=E4gen 81
- Computational Linguistics | 412 54 G=F6teborg, Sweden
- G=F6teborg University, SWEDEN | +46 31 778 18 58
- ----------------------------------------------------------------------------=
- --
- Do not hesitate to send e-mail to my son. Put "To Felix" in the subject fiel=
- d.
- He is now 10 months old. And the cutest in the world.
-
- "This is the working hour. We are paid by those who learn from our mistakes"
- /Tears for Fears
- ____________________________________________________________________________=
- __
- =========================================================================
- Date: Sat, 13 Aug 1994 10:53:15 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Re: Client Server scripts over AppleTalk
-
- >I was wondering if anyone had made a pair of scripts to hand information to
- >eachother over a appletalk network I have worked on Scripts for a while, but
- >never tried this, and it is always more fun to have a example to work off of.
- > I do not care waht it does just looking for the communication aspect.
- >-chanson@shore.net
-
- I put together a *very* simple applet whose only job was to wait for an
- apple event and put up a dialog box with the text that was passed to it.
-
- I called it "Beeper", and it consists of the following handler:
-
- on respond(theText)
- beep
- display dialog theText
- beep
- end respond
-
- With Beeper running on one machine, write a script on another with code
- that is something like this:
-
- tell application "Beeper" of machine "Mac" of zone "Name"
- respond("Hello")
- end tell
-
- I may not have the syntax of the "tell" statement exactly right, but that's
- the general idea.
-
- --Tom
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "The city is a place where a small boy, as he walks
- Technology Facilitator through it, may see something that will tell him
- Glen Grove School what he wants to do his whole life."
- Glenview, Illinois --Louis I. Kahn
- E-mail: donovant@ncook.k12.il.us, donovan@covis.nwu.edu
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Sat, 13 Aug 1994 14:01:19 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Re: Client Server scripts over AppleTalk
-
- Check the OSAX Command list
- =========================================================================
- Date: Sun, 14 Aug 1994 14:47:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rob Dewhirst <robd@FARALLON.COM>
- Subject: OtherMenu 1.5
-
- I have uploaded OtherMenu 1.5 to gaea. As of v1.4, it has the ability to
- execute compiled AppleScripts. 1.5 fixed some problems with this, and added
- support for running KeyQuencer macro files.
-
- If you use OSAMenu, you may want to check out OtherMenu.
- =========================================================================
- Date: Mon, 15 Aug 1994 10:04:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Auditing Your Additions
-
- There was a discussion on this mailing list a few days ago about people having
- so many osaxes in their Scripting Additions folder that they were losing track
- of which ones did what. I decided to come up with a solution to the problem.
-
- My solution takes the form of yet another scripting addition, which I call
- EightyLister. This implements two commands: "list events" will list a summary
- of the events defined in an aete resource in any file. "scripting additions
- folder" returns an alias to your Scripting Additions folder, and I've provided
- basic example scripts so you can see how to use these two to list all the events
- defined by your currently-installed osaxes.
-
- I've dropped a copy in the incoming directory on gaea.kgs.ukans.edu. Enjoy!
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Sun, 14 Aug 1994 14:57:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: flip <flip@BOGIE2.BIO.PURDUE.EDU>
- Subject: Scripting PowerTalk
-
- Has anyone been scripting PowerTalk yet?
-
- Specifically the owner's in box and AppleMail?
-
- Flip
-
- __@ Phillip 'Flip' Russell | Purdue University __@
- _ -_,_-\<,_ flip@bogie2.bio.purdue.edu | West Lafayette, IN _ -\<,_
- (_)-----/-(_) The important things... (_)-/-(_)
- My bikes and my Macintosh
-
-
-
-
-
- ------------------ Nested Letter Follows ------------------
- Received: by bogie2.bio.purdue.edu with SMTP;14 Aug 1994 16:55:13 -0500
- Received: from bogie2.bio.purdue.edu by mentor.cc.purdue.edu (5.61/Purdue_CC)
- id AA00480; Sun, 14 Aug 94 16:56:37 -0500
- Date: Sun, 14 Aug 94 16:56:37 -0500
- From: MAILER-DAEMON@mentor.cc.purdue.edu (Mail Delivery Subsystem)
- Subject: Returned mail: Host unknown
- Message-Id: <9408142156.AA00480@mentor.cc.purdue.edu>
- To: <flip@bogie2.bio.purdue.edu>
-
- ----- Transcript of session follows -----
- 550 <@VM.CC.PURDUE.EDU#c#MACSCRPT@DARTCMS1>... Host unknown
-
- ----- Unsent message follows -----
- Received: from bogie2.bio.purdue.edu by mentor.cc.purdue.edu (5.61/Purdue_CC)
- id AA00478; Sun, 14 Aug 94 16:56:37 -0500
- Message-Id: <9408142156.AA00478@mentor.cc.purdue.edu>
- Date: 14 Aug 1994 14:54:54 -0500
- From: "flip" <flip@bogie2.bio.purdue.edu>
- Subject: Scripting PowerTalk
- To: "Macintosh Scripting Systems" <@VM.CC.PURDUE.EDU#c#MACSCRPT@DARTCMS1>
-
- Has anyone been scripting PowerTalk yet?
-
- Specifically the owner's in box and AppleMail?
-
- Flip
-
- __@ Phillip 'Flip' Russell | Purdue University __@
- _ -_,_-\<,_ flip@bogie2.bio.purdue.edu | West Lafayette, IN _ -\<,_
- (_)-----/-(_) The important things... (_)-/-(_)
- My bikes and my Macintosh
-
-
-
-
- ------------------ End of Nested Letter ------------------
- =========================================================================
- Date: Sun, 14 Aug 1994 18:43:31 +22306620
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
- Subject: Re: Visual cues that an AppleScript is running
- In-Reply-To: <199408130806.AA17196@freenet3.scri.fsu.edu>
-
- > > Is there some extension, OSAX or such that will give me a visual indication
- > > that an AppleScript is running, other than a generic spinning cursor?
- >
- > If you use FaceSpan as an interface builder for your app, it produces a
- > spinning wheel while scripts execute.
- >
- > Danny Goodman
-
- Is there a way to implement a custom animated cursor for wait indication
- in (or out of) FaceSpan? Without using ResEdit?
-
- -AbbyD
- =========================================================================
- Date: Sun, 14 Aug 1994 23:38:27 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Visual cues that an AppleScript is running
-
- From: Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
- >
- >> > Is there some extension, OSAX or such that will give me a visual indication
- >> > that an AppleScript is running, other than a generic spinning cursor?
- >>
- >> If you use FaceSpan as an interface builder for your app, it produces a
- >> spinning wheel while scripts execute.
- >>
- >> Danny Goodman
- >
- >Is there a way to implement a custom animated cursor for wait indication
- >in (or out of) FaceSpan? Without using ResEdit?
-
- I've added a new osax named "set cursor to" to Jon's Commands which accepts
- a set of enums (watch cursor, plus cursor, cross cursor and arrow cursor).
- It seems to work fine, although a number of programs still set their
- cursors when you move the mouse over different areas. That means you may
- need to set the cursor often.
-
- I'm trying to decide on the best ways to do the custom busy procedure. It
- will be simple enough to include a set of common busy cursors that you can
- choose from. That would be the beachball and the watch. I'm taking
- suggestions for others. I have a fairly large cursor collection, so I'll
- paw through it and see what shows up.
-
- I guess the only way to do a custom one is to provide a file and the
- resource id of the acur resource. What this means is that you need to use
- ResEdit to create the cursor resources. These are the acur resource which
- lists the order of the CURS or crsr resources. The CURS resource is a b&w
- cursor while a crsr is a color cursor. There could be programs out there
- to make cursors, but I've never seen one, and ResEdit works fine. Why not
- use it? You haven't been listening to those "ResEdit is dangerous"
- warnings, have you? Pah! Life is dangerous. Go for it. ;)
-
- Jon
- =========================================================================
- Date: Mon, 15 Aug 1994 07:09:25 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Cut from one app, paste to another
-
- I couldn't think of a better subject. Sorry.
-
- I want to write a script that can take the currently selected text from one
- app and paste it into another app--namely, to be able to make a reply in
- Eudora to text from my terminal window or a new message to an address
- selected in same. BUT, after reading the discussion of the past few days,
- I wonder if this is possible?
-
- So-can I find out what was active immediately before my script was run from
- OSA Menu?? Having that, I assume I could use somethign like AutoType to
- cut from one app and paste to another.... Or do scripts run via OSA Menu
- run in the background already?
-
- Thanks,
-
- ~ Kiran
-
-
-
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Mon, 15 Aug 1994 09:00:27 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
- Subject: MS: Monthly Harrange
-
- Save this mail message. It includes all the e-mail addresses you need when
- dealing with the Mac Scripting mailing list.
-
- *** To Unsubscribe from this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: unsubscribe
- Message: signoff macscrpt
-
-
- *** To subscribe to this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: subscribe
- Message: subscribe macscrpt <your full name here>
-
-
- *** To receive the mail as daily digest:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: digest
- Message: set macscrpt digest
-
-
- *** To get other info on using this automated system:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: help
- Message: help
-
-
- *** To ask the human moderators a question:
-
- Send to: MacScripting-Request@dartmouth.edu
-
-
- *** To send a message to the mailing list:
-
- Send to: MacScripting@dartmouth.edu
-
-
- Thanks.
-
- -The Moderators (a very offcial way of saying "Fred & Andy")
- =========================================================================
- Date: Mon, 15 Aug 1994 10:10:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: OtherMenu 1.5 and EightyLister
- In-Reply-To: Your message of "Sun, 14 Aug 94 14:47:41 PDT"
-
- Thanks to Rob Dewhurst and Lawrence D'Oliverio you'll find OtherMenu 1.5 and
- the EightyLister osax on gaea in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/EightLister.hqx
- ftp://gaea.kgs.ukans.edu/applescript/addons/OtherMenu1.5.sit.hqx
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Mon, 15 Aug 1994 09:01:46 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Cut from one app, paste to another
-
- At 07:09 8/15/94 -0400, Kiran Wagle wrote:
- >I want to write a script that can take the currently selected text from one
- >app and paste it into another app--namely, to be able to make a reply in
- >Eudora to text from my terminal window or a new message to an address
- >selected in same. BUT, after reading the discussion of the past few days,
- >I wonder if this is possible?
- >
- >So-can I find out what was active immediately before my script was run from
- >OSA Menu?? Having that, I assume I could use somethign like AutoType to
- >cut from one app and paste to another.... Or do scripts run via OSA Menu
- >run in the background already?
-
- Finding out what is active when a selection is made from the OSA Menu menu
- is easy, because the script is running "in" the then-active application.
- Given the Scriptable Finder, you write:
-
- tell application "Finder"
- set foo to processes where frontmost is true
- end tell
- if foo is {} then
- set bar to application "Finder"
- else
- set bar to foo
- end if
- -- at this point, bar is a reference to the active application
- display dialog bar as string
-
-
- Note the special case for Finder. The current Scriptable Finder doesn't
- like to admit that it is a process (some future version, according to the
- Finder Scripting Guide, will be less bashful). So processes where
- frontmost is true is an empty list if Finder is the active application.
-
- The problem discussed here recently involves a different task: finding out
- what process was active before a new one was started. I'm not at all sure
- that one is doable without reverse engineering.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 15 Aug 1994 09:27:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Cut from one app, paste to another
-
- At 07:09 8/15/94 -0400, Kiran Wagle wrote:
- >I couldn't think of a better subject. Sorry.
- >
- >I want to write a script that can take the currently selected text from one
- >app and paste it into another app--namely, to be able to make a reply in
- >Eudora to text from my terminal window or a new message to an address
- >selected in same. BUT, after reading the discussion of the past few days,
- >I wonder if this is possible?
- >
- >So-can I find out what was active immediately before my script was run from
- >OSA Menu?? Having that, I assume I could use somethign like AutoType to
- >cut from one app and paste to another.... Or do scripts run via OSA Menu
- >run in the background already?
-
- And I previously provided a short snippet for finding the front process in
- your context.
-
- However...since the details of getting the current selection out of an
- application in useful form vary (simple script in some cases--but not all
- the same script, hack with UI player in others, and perhaps impossible for
- some), you might consider writing a specific script for each source
- application of interest, and putting it in the app-specific folder for OSA
- Menu, rather than in the Universal folder.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 15 Aug 1994 09:34:34 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Alec Plumb <aplumb@UCSD.EDU>
- Subject: ignoring application responses
-
- Hello,
- I have been using the Fetch Clipboard script, which came with Anarchie,
- with OSA menu to pull down some of the many URLs that come my way. At
- first I had a problem with the script tying my machine up forever, waiting
- for a response from Anarchie, which doesn't send a response until the file
- has actually been recieved. So I found the nifty little "ignoring
- application responses" command in the Applescript manual (yes, I actually
- Read The F'ing Manual :). At which point the relevant part of the script
- looked like:
-
- tell application "Anarchie"
- ignoring application responses
- set theResult to fetch url theurl
- end ignoring
- end tell
-
- Now whenever I run the script, I get a dialog box with the following message:
-
- An error of type -1753 occured while running the script named "Fetch Clipboard."
-
- The scripting system reported that "no result was returned from some part
- of this
-
- That's all the text that the dialog box has space for. When I click the OK
- button, I see that Anarchie is going on it's merry way, downloading the
- file I asked for, and I can continue with what I was doing. So I'd like to
- know why I get an error, even though everything seems to work just fine,
- especially since I explicitly told the script to _ignore_ application
- responses. (By the way, I tried removing the "set theResult to" part, and
- Anarchie barfed on the command.) And I'd like to know why the dialog box
- is too small for the error message. Is this a function of OSA menu? Would
- OtherMenu do a better job?
-
- Thanks,
-
-
- Alec Plumb \\ W:619/534-5999 \\ Forever trust in who we are,
- aplumb@ucsd.edu \\ H:619/294-2112 \\ And nothing else matters
- MacSupport\\ IGPP \\ SIO \\ UCSD \\ - J. Hetfield
- =========================================================================
- Date: Mon, 15 Aug 1994 09:46:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Robert Mark <rmark@ISDMNL.WR.USGS.GOV>
- Subject: Re: OtherMenu 1.5 and EightyLister
-
- >Thanks to Rob Dewhurst and Lawrence D'Oliverio you'll find OtherMenu 1.5 and
- >the EightyLister osax on gaea in
- >
- >ftp://gaea.kgs.ukans.edu/applescript/osaxen/EightLister.hqx
-
-
- When I run "List Additions" (EightyLister), after running for some time, I
- get a "Resource wasn't found" error at:
- "list events file (AdditionsFolder & ThisFile)"
-
- Bob Mark
- USGS
-
- Robert Mark rmark@isdmnl.wr.usgs.gov
- US Geological Survey 415-329-4917
- 345 Middlefield Road MS-975 415-329-4936 FAX
- Menlo Park, CA 94025
- =========================================================================
- Date: Mon, 15 Aug 1994 15:13:05 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
- Subject: Re: Visual cues that an AppleScript is running
- In-Reply-To: <199408150835.AA19752@freenet3.scri.fsu.edu>
-
- On Sun, 14 Aug 1994, Jon Pugh wrote:
-
- (previous messages deleted.)
- >
- > I guess the only way to do a custom one is to provide a file and the
- > resource id of the acur resource. What this means is that you need to use
- > ResEdit to create the cursor resources. These are the acur resource which
- > lists the order of the CURS or crsr resources. The CURS resource is a b&w
- > cursor while a crsr is a color cursor. There could be programs out there
- > to make cursors, but I've never seen one, and ResEdit works fine. Why not
- > use it? You haven't been listening to those "ResEdit is dangerous"
- > warnings, have you? Pah! Life is dangerous. Go for it. ;)
- >
- > Jon
- >
- I have been using ResEdit to customise the Icons for apps created in
- FaceSpane. I have no problem with the idea of making resources for a
- custom animated cursor. I was hesitant to replace the one that FaceSpan
- provides, as I didn't want to risk muddling up their code-to-resource
- connections. I love ResEdit! I take LOTS of risks. Just hours ago,
- I was jaywalking in midtown Manhattan!
-
- -Abby
- =========================================================================
- Date: Mon, 15 Aug 1994 12:31:16 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ignoring application responses
-
- >Hello,
- >I have been using the Fetch Clipboard script, which came with Anarchie,
- >with OSA menu to pull down some of the many URLs that come my way. At
- >first I had a problem with the script tying my machine up forever, waiting
- >for a response from Anarchie, which doesn't send a response until the file
- >has actually been recieved. So I found the nifty little "ignoring
- >application responses" command in the Applescript manual (yes, I actually
- >Read The F'ing Manual :). At which point the relevant part of the script
- >looked like:
- >
- >tell application "Anarchie"
- > ignoring application responses
- > set theResult to fetch url theurl
- > end ignoring
- >end tell
- >
- >Now whenever I run the script, I get a dialog box with the following message:
- >
- >An error of type -1753 occured while running the script named "Fetch
- >Clipboard."
- >
- >The scripting system reported that "no result was returned from some part
- >of this
- >
-
- You are telling AppleScript two conflicting things:
-
- First, you say send the event to Anarchie in such a way that no response
- comes back. Then you say, "oh, and put the response which isn't coming
- back into theResult". I'm not surprised the combination doesn't work.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 15 Aug 1994 14:53:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: MACSCRPT Digest - 13 Aug 1994 to 14 Aug 1994
-
- Hi out there, does anyone know of a way to have an applet tell what
- kind of thing was dropped on it? I'd like users to drop either a
- folder OR individual files (or double-click) onto my applet and still
- have it do the same thing, (ie pass the correct data to my subroutined
- engine...)
-
- Thanks for any help or suggestions!
- Jason
-
- --
- Are you trying to say waffles are | Jason Frankovitz
- diuretics, or that consuming diuretics | Bloomington, IN
- makes you waffle? | jfrankov@indiana.edu
- =========================================================================
- Date: Mon, 15 Aug 1994 14:00:12 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Alec Plumb <aplumb@UCSD.EDU>
- Subject: Re: ignoring application responses
-
- >>Hello,
- >>I have been using the Fetch Clipboard script, which came with Anarchie,
- >>with OSA menu to pull down some of the many URLs that come my way. At
- >>first I had a problem with the script tying my machine up forever, waiting
- >>for a response from Anarchie, which doesn't send a response until the file
- >>has actually been recieved. So I found the nifty little "ignoring
- >>application responses" command in the Applescript manual (yes, I actually
- >>Read The F'ing Manual :). At which point the relevant part of the script
- >>looked like:
- >>
- >>tell application "Anarchie"
- >> ignoring application responses
- >> set theResult to fetch url theurl
- >> end ignoring
- >>end tell
- >>
- >>Now whenever I run the script, I get a dialog box with the following message:
- >>
- >>An error of type -1753 occured while running the script named "Fetch
- >>Clipboard."
- >>
- >>The scripting system reported that "no result was returned from some part
- >>of this
- >>
- >
- >You are telling AppleScript two conflicting things:
- >
- >First, you say send the event to Anarchie in such a way that no response
- >comes back. Then you say, "oh, and put the response which isn't coming
- >back into theResult". I'm not surprised the combination doesn't work.
- > --John
- >
- >--
- >jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- >finger me to prove I'm all wet (Port Ludlow rainfall numbers).
-
-
- You are right. But when I remove "set theResult to", I get an error -49
- when I launch the script through OSA menu. But when I run the modified
- script from within Script Editor, it doesn't have any problem. I just
- tried the script with OtherMenu without a hitch. So it seems to be some
- kind of problem with OSA Menu.
-
- Thanks,
-
- Alec Plumb
- =========================================================================
- Date: Mon, 15 Aug 1994 15:02:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Scripting PowerTalk
-
- >Has anyone been scripting PowerTalk yet?
- >
- >Specifically the owner's in box and AppleMail?
- >
-
- Yes, I tried Scripting PowerTalk for a while and then went to Eudora.
-
- The Beyond Mail PowerRules stuff seems to be very flakey and it was the
- only thing I found that could open incoming mail and read it, BUT, lots of
- the sample AppleScripts would not function and it seemed to get worse with
- each update.
-
- The GTQ Libraries have some send AppleEvents but no read mail AppleEvents.
- The calls to read AppleMail have not been published. There are rumors that
- someone will have some read AppleMail AppleEvents sometime soon but I have
- yet to see them and they might cease to function if Apple ever gets around
- to publishing (and thus freezing) the read mail spec.
-
- For now I script Eudora. It works.
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Mon, 15 Aug 1994 16:36:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 13 Aug 1994 to 14 Aug 1994
- In-Reply-To: <199408152149.OAA16298@mail2.netcom.com>
-
- > Hi out there, does anyone know of a way to have an applet tell what
- > kind of thing was dropped on it? I'd like users to drop either a
- > folder OR individual files (or double-click) onto my applet and still
- > have it do the same thing, (ie pass the correct data to my subroutined
- > engine...)
-
- One way (just using the file commands scripting addition) would be to do
- a "folder of info for" on each item:
-
- on open(docList)
- --General open handler
- repeat with i from 1 to the count of docList
- --General repeat loop
- if the folder of (info for item i of docList) is true then
- --Do folder related things
- else --One can assume it's a file, but it may be a disk. I don't
- know how AS distinguishes a disk from a folder, if it does. You could use
- ResEdit to limit the FREF to only allow folders and files
- --Do file related things
- end if
- end open
-
- In terms of trapping for double-click or not, that's easy.
- Double-clicking on the app doesn't trigger the open handler. Instead, it
- triggers the "run" handler (or it does all the commands not in any
- handler). Likewise the "quit" handler gets run when your script app quits.
-
- Hope that helps,
-
- Derrick
- =========================================================================
- Date: Mon, 15 Aug 1994 16:53:16 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: James Edward Davis <jedavis@CS.STANFORD.EDU>
- Subject: Run a script from C code
-
- Id like to run previously compiled (with Toy Surprise)
- script from my C code. I cant manage to get it to work, even
- though its supposed to be fairly simple. I dont suppose a
- code snippet exist anywhere, or that someone would like to
- provide one? My code only works while Think Debugger is running,
- but crashes without it. =(
-
- Any pointers appreciated,
- James Davis (jedavis@cs.stanford.edu) : Stanford University
- =========================================================================
- Date: Mon, 15 Aug 1994 18:09:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Edmund Lai <lai@APPLE.COM>
- Subject: Re: Auditing Your Additions
-
- >There was a discussion on this mailing list a few days ago about people having
- >so many osaxes in their Scripting Additions folder that they were losing track
- >of which ones did what. I decided to come up with a solution to the problem.
- >
- >My solution takes the form of yet another scripting addition, which I call
- >EightyLister. This implements two commands: "list events" will list a summary
- >of the events defined in an aete resource in any file. "scripting additions
- >folder" returns an alias to your Scripting Additions folder, and I've provided
- >basic example scripts so you can see how to use these two to list all the
- >events
- >defined by your currently-installed osaxes.
- >
- >I've dropped a copy in the incoming directory on gaea.kgs.ukans.edu. Enjoy!
- >
- >Lawrence D'Oliveiro fone: +64-7-856-2889
- >Info & Tech Services Division fax: +64-7-838-4066
- >University of Waikato electric mail: ldo@waikato.ac.nz
- >Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
-
- This reminds me of something I did a while ago. It was an osax called
- "What can I do". It tried to display either all the commands from
- a application (if you use tell) or all the osax. All the parameters
- in the commands are displayed. The command text are generated by
- asking AppleScript to unparse it. In fact to generate optional
- parameters AppleScript is asked to unparse it once with a parameter
- and once without and this is repeated for every optional parameter.
- The result is that it is rather slow, and sometimes the amount of
- text generated is so large that script editor has problem handling
- it. So I never release it. But it can be fun to play with. So I
- also put it into the incoming directory on gaea.kgs.ukans.edu.
- It is called helpOSAX.
-
- /* Disclaimer: All statments and opinions expressed are my own */
- /* Edmund K. Lai */
- /* Apple Computer, MS303-3A */
- /* 20525 Mariani Ave, */
- /* Cupertino, CA 95014 */
- /* (408)974-6272 */
- zW@h9cOi
- =========================================================================
- Date: Mon, 15 Aug 1994 19:04:33 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ignoring application responses
-
- [Prior exchange omitted]
-
- Alec says:
-
- >You are right. But when I remove "set theResult to", I get an error -49
- >when I launch the script through OSA menu. But when I run the modified
- >script from within Script Editor, it doesn't have any problem. I just
- >tried the script with OtherMenu without a hitch. So it seems to be some
- >kind of problem with OSA Menu.
-
- I ran into one of those just today. I had to close the copy of the
- just-saved script which was open in Script Editor...then the -49 error went
- away. And, -49 is:
-
- The read/write permission of only one access path to a file can allow writing
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 15 Aug 1994 22:24:23 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Oliver Muoto <muoto@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 13 Aug 1994 to 14 Aug 1994
-
- Is there an OSAX that allows you to specifically search for a file (returns
- an alias to the file)?
-
- Thanks in advance.
-
-
- --------------------------------------------------------------------------------
- Oliver Muoto Voice: 415.541.9333
- Product Manager/Director of Marketing Fax: 415.541.0555
- Motion Works International Email: muoto@netcom.com
- --------------------------------------------------------------------------------
- =========================================================================
- Date: Tue, 16 Aug 1994 01:01:44 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Re: Visual cues that an AppleScript is running -Reply
-
- Jon,
-
- check out the spinning globe that at the very least is in our product
- WordPerfect....
-
- Andrew Cemelli
- Macintosh Systems Engineer
- WordPerfect Corporation (ANDYC@WordPerfect.com)
- ---------------------------------------------------
- The fact that I'm opinionated is not my employer's fault.
- ---------------------------------------------------
- =========================================================================
- Date: Tue, 16 Aug 1994 08:41:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Auditing Your Additions
- In-Reply-To: Your message of "Mon, 15 Aug 94 18:09:41 PDT"
-
- Ed Lai sez......
-
- This reminds me of something I did a while ago. It was an osax called
- >"What can I do". It tried to display either all the commands from
- >a application (if you use tell) or all the osax. All the parameters
- >in the commands are displayed. The command text are generated by
- >asking AppleScript to unparse it. In fact to generate optional
- >parameters AppleScript is asked to unparse it once with a parameter
- >and once without and this is repeated for every optional parameter.
- >The result is that it is rather slow, and sometimes the amount of
- >text generated is so large that script editor has problem handling
- >it. So I never release it. But it can be fun to play with. So I
- >also put it into the incoming directory on gaea.kgs.ukans.edu.
- >It is called helpOSAX.
-
- You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/helposax.sit.hqx
-
- Cheers.
-
- pf
- =========================================================================
- Date: Tue, 16 Aug 1994 15:57:00 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Hsu, Eugene" <HSU.E@APPLELINK.APPLE.COM>
- Subject: Re: Run a script from C code
-
- >Id like to run previously compiled (with Toy Surprise)
- >script from my C code. I cant manage to get it to work, even
- >though its supposed to be fairly simple. I dont suppose a
- >code snippet exist anywhere, or that someone would like to
- >provide one? My code only works while Think Debugger is running,
- >but crashes without it. =(
-
- >Any pointers appreciated,
- >James Davis (jedavis@cs.stanford.edu) : Stanford University
-
- -------
-
- Also, does anyone out there have sample code to demonstrate how to pass
- parameters from C code to a script with a handler?
-
- Eugene Hsu
- HSU.E@applelink.apple.com
- =========================================================================
- Date: Tue, 16 Aug 1994 15:57:00 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Hsu, Eugene" <HSU.E@APPLELINK.APPLE.COM>
- Subject: Re: Run a script from C code
-
- >Id like to run previously compiled (with Toy Surprise)
- >script from my C code. I cant manage to get it to work, even
- >though its supposed to be fairly simple. I dont suppose a
- >code snippet exist anywhere, or that someone would like to
- >provide one? My code only works while Think Debugger is running,
- >but crashes without it. =(
-
- >Any pointers appreciated,
- >James Davis (jedavis@cs.stanford.edu) : Stanford University
-
- -------
-
- Here is some C Code that might help...
-
-
- Eugene Hsu
- HSU.E@applelink.apple.com
-
- -------
-
- OSErr ExecuteScript(AEDesc theScript, AEDescList theParamList,
- ComponentInstance gASComponent,
- AppleEvent *theReply)
- {
- OSAError theOSAErr = errAEWrongDataType;
- OSErr theErr = noErr;
- OSAID resultingID = 0, resultingScriptValueID = 0;
- longmodeFlags = 0;
- AEDesc result, errDesc;
- AEAddressDesc target;
- AppleEvent theAppleEvent;
- AEDesc resultingErrorDescription;
-
- theAppleEvent.dataHandle = nil;
- target.descriptorType = typeTargetID;
- target.dataHandle = nil;
- resultingErrorDescription.dataHandle = nil;
-
- result.descriptorType = typeNull;
- result.dataHandle = nil;
- errDesc.dataHandle = nil;
-
- if (theScript.descriptorType == kOSAScriptResourceType) {
- theOSAErr = OSALoad(gASComponent,
- &theScript,
- modeFlags,
- &resultingID);
- }
- else {
- theOSAErr = OSACompile( gASComponent,
- &theScript,
- kOSAModeCompileIntoContext,
- &resultingID);
- }
- if(theOSAErr != noErr) goto BAILLABEL;
-
-
- theOSAErr = OSAExecute( gASComponent,
- resultingID,
- kOSANullScript,
- modeFlags,
- &resultingScriptValueID);
-
- if(theOSAErr == noErr){
- if(resultingScriptValueID != 0) { // Only add it if we got some value back.
- theOSAErr = OSACoerceToDesc(gASComponent,
- resultingScriptValueID,
- typeWildCard,
- modeFlags,
- &result);
-
- if(theOSAErr == noErr)
- AEPutParamDesc(theReply, keyDirectObject, &result);
- else // Just return the error
- theErr = AEPutParamPtr(theReply, keyErrorNumber, typeLongInteger,
- (Ptr)&theOSAErr, sizeof(theOSAErr));
- }
- }
- else {
- if(theOSAErr == errOSAScriptError) {
- theOSAErr = OSAScriptError(gASComponent, kOSAErrorNumber, typeLongInteger,
- &errDesc);
- if(theOSAErr != noErr) {
- if(errDesc.dataHandle != nil)
- AEDisposeDesc(&errDesc);
- goto BAILLABEL;
- }
-
- theErr = AEPutParamDesc(theReply, keyErrorNumber, &errDesc);
- if(theErr != noErr) goto BAILLABEL;
-
- if(errDesc.dataHandle != nil) // so we can reuse it
- AEDisposeDesc(&errDesc);
-
- theOSAErr = OSAScriptError(gASComponent, kOSAErrorMessage, typeChar,
- &errDesc);
- if(theOSAErr != noErr) {
- if(errDesc.dataHandle != nil)
- AEDisposeDesc(&errDesc);
- goto BAILLABEL;
- }
- theErr = AEPutParamDesc(theReply, keyErrorString, &errDesc);
- }
- else // Just return the error
- theErr = AEPutParamPtr(theReply, keyErrorNumber, typeLongInteger,
- (Ptr)&theOSAErr, sizeof(theOSAErr));
- }
-
-
- BAILLABEL:;
- theErr = theOSAErr;
- if(resultingID != 0)
- OSADispose( gASComponent,
- resultingID);
- if(resultingID != 0)
- OSADispose( gASComponent,
- resultingScriptValueID);
- if(result.dataHandle != nil)
- AEDisposeDesc(&result);
- if(errDesc.dataHandle != nil)
- AEDisposeDesc(&errDesc);
- if(theAppleEvent.dataHandle != nil)
- AEDisposeDesc(&theAppleEvent);
- if(resultingErrorDescription.dataHandle != nil)
- AEDisposeDesc(&resultingErrorDescription);
-
- return theErr;
- }
- =========================================================================
- Date: Tue, 16 Aug 1994 12:21:16 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
- Subject: Re: ignoring application responses
-
- >
- >I ran into one of those just today. I had to close the copy of the
- >just-saved script which was open in Script Editor...then the -49 error went
- >away. And, -49 is:
- >
- >The read/write permission of only one access path to a file can allow writing
-
- So why would AppleScript, OSA Menu or anything else other than the Script
- Editor/ScriptWizard need that script open for write access ?
-
- Klaus
-
- ------------------------------------------------------------------------
- Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
- =========================================================================
- Date: Tue, 16 Aug 1994 10:11:14 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: ?FileMaker Pro and AppleScript?
-
- I'm using AS in FileMaker Pro and have the following problems. When using AS
- to initiate a reloookup or replace command in FMP, AS hangs and times out.
- The problem isn't the timeout time, rather it seems AS isn't aware that FMP
- is finished with the task initiated. The only solution I've found is to
- implement a dialog in AS after the command line to FMP. What a kludge. Also,
- the reliability of menu hits is less than satisfactory. I know about enables,
- yet, sometimes, even when enabled the do menu command fails to return the
- proper response. I am resorting to initiating FMP internal scripts when I
- shouldn't have to in order to get things done. Why is this so
- unreliable?
-
- Thanks,
-
- -MJL
- =========================================================================
- Date: Tue, 16 Aug 1994 11:20:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: ignoring application responses
-
- >And I'd like to know why the dialog box
- >is too small for the error message. Is this a function of OSA menu?
- >
- Yup, my dialog box is too small :(.
-
-
- >Would OtherMenu do a better job?
- >
- Don't know - haven't tried it!
-
-
- LDR
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Tue, 16 Aug 1994 11:19:25 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Cut from one app, paste to another
-
- >I want to write a script that can take the currently selected text from one
- >app and paste it into another app--namely, to be able to make a reply in
- >Eudora to text from my terminal window or a new message to an address
- >selected in same. BUT, after reading the discussion of the past few days,
- >I wonder if this is possible?
- >
- Shouldn't be a problem. I use AutoType and Jon's Clipboard OSAX
- to do this kind of thing for pasting in signatures and the like. Another
- great tool in this regard is KeyQuencer.
-
-
- >So-can I find out what was active immediately before my script was run from
- >OSA Menu?? Having that, I assume I could use somethign like AutoType to
- >cut from one app and paste to another.... Or do scripts run via OSA Menu
- >run in the background already?
- >
- Should work fine...
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Tue, 16 Aug 1994 11:22:28 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: AppleScript as a network software installer/updater system
-
- >I'm starting to get into Installer Making myself (playing with Smaller
- >Installer and Aladdin Installer Maker right now). I like your idea -- I've
- >figured that if I could count on the user having AS, writing installers
- >would be laughingly easy
- >
- One of the things that we are looking at for future versions of
- InstallerMaker is allowing the attachment of AppleScripts to an
- installation like you can do currnetly with custom code resources. The
- reason we haven't done it to thi point is mostly that AS hasn't yet been as
- widely adopted and so it wouldn't be as useful. Now that 7.5 is emminent,
- we'll see about having it in our next major update.
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Tue, 16 Aug 1994 11:23:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: SITComm and the window properties?
-
- >I figured I could write some sort of script dealing with "bounds of window 1"
- >to make sure the window is in the state I like it. However, it doesn't seem
- >to include windows as objects with properties - that is to say, the
- >dictionary doesn't define window as an object....
- >
- Correct. As of SITcomm 1.0.1, the AEObject Model is not supported
- so that you can't do things with window properties. Our goal was to get
- SITcomm out and doing object model at the time wasn't on teh schedule. We
- have plans to incorporate it into all of our products in the future to
- improve both functionality and ease of use in our scdriptability.
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Tue, 16 Aug 1994 12:31:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Re: MACSCRPT Digest - 14 Aug 1994 to 15 Aug 1994
-
- Jon Pugh writes:
- > I'm trying to decide on the best ways to do the custom busy procedure.
- > It will be simple enough to include a set of common busy cursors that
- > you can choose from. That would be the beachball and the watch.
- > I'm taking suggestions for others. I have a fairly large
- > cursor collection, so I'll paw through it and see what shows up.
-
- How about a small script document as a cursor where each successive line
- highlights and then moves to the next line. It would look like the document is
- being read (or the script is being performed). You could also make the lines
- scroll up making it look like it's going through the script.
-
- Just some thoughts,
-
- Greg
- =========================================================================
- Date: Tue, 16 Aug 1994 12:42:47 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Pictures from QuarkXPress
-
- Does anyone know if someone can get a list pictures like they can get a font
- list. I don't see anything in the documentation about this. Any ideas?
-
- Thanks
-
- -Mike
- =========================================================================
- Date: Tue, 16 Aug 1994 12:45:11 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Re: Cut from one app, paste to another
-
- Without the 'activate window' FMP doesn't get the message. Without the
- 'activate' and 'display dialog' following the 'do script' AS hangs,
- apparently waiting for a result from FMP. I am open to criticism of any sort
- on this script. Because of the sparse nature of interaction on this forum and
- the limited number of tomes on AS we have been pretty much scripting in the
- dark.
-
- Here is what we have.....
-
- set LCheck to ""
- set BCheck to ""
- set SCheck to ""
- set YCheck to ""
- set LCheck to ""
- set PrclNo to ""
- with timeout of 10000 seconds
-
- tell application "FileMaker Pro"
- tell Document " HSI Assessment 2.0"
- tell Layout 0
- copy (Cell "A033 LandCheck") to LCheck
- copy (Cell "A034 BuildingCheck") to BCheck
- copy (Cell "A035 YardCheck") to YCheck
- copy (Cell "A036 SketchCheck") to SCheck
- copy (Cell "A001 Parcel No.") to PrclNo
- end tell
- end tell
- end tell
-
- set the clipboard to PrclNo
-
- if LCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Land Module"
- Do Script FileMaker Script named "Find Land for Chg" in Document "*Land
- Module"
- end tell
- end if
-
- if BCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Building Module"
- Do Script FileMaker Script named "Find Building chg prcl" in Document
- "*Building Module"
- end tell
- end if
-
- if YCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Yard Module"
- Do Script FileMaker Script named "Find Yard Chg Prcl" in Document "*Yard
- Module"
- end tell
- end if
-
- if SCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Sketch Module"
- Do Script FileMaker Script named "Find Sketch" in Document "*Sketch
- Module"
- end tell
- end if
-
- if LCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Land Module"
- Do Script FileMaker Script named "Change Parcel#" in Document "*Land
- Module"
- end tell
- activate
- display dialog "Land records have been changed." buttons "OK" default
- button "OK"
-
- end if
-
- if BCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Building Module"
- Do Script FileMaker Script named "Change Parcel#" in Document "*Building
- Module"
- end tell
- activate
- display dialog "Building records have been changed." buttons "OK" default
- button "OK"
- end if
-
- if YCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Yard Module"
- Do Script FileMaker Script named "Change Parcel#" in Document "*Yard
- Module"
- activate
- display dialog "Yard records have been changed." buttons "OK" default
- button "OK"
- end tell
- end if
-
- if SCheck = "Yes" then
- tell application "FileMaker Pro"
- activate Window "*Sketch Module"
- Do Script FileMaker Script named "Change Parcel#" in Document "*Sketch
- Module"
- activate
- display dialog "Sketch & Photo records have been changed." buttons "OK"
- default button "OK"
- end tell
- end if
-
- tell application "FileMaker Pro"
- activate Window " HSI Assessment 2.0"
- Do Script FileMaker Script named "Change Parcel# prt2" in Document " HSI
- Assessment 2.0"
- end tell
-
- activate
- display dialog "Change parcel number is complete." buttons "OK" default
- button "OK"
- activate window " HSI Assessment 2.0"
- tell application "FileMaker Pro"
- activate Window " HSI Assessment 2.0"
- Do Script FileMaker Script named "Menu" in Document " HSI Assessment 2.0"
- end tell
-
- end timeout
-
- Any ideas or suggestions for this person?
-
- Thanks,
-
- Mike
- =========================================================================
- Date: Tue, 16 Aug 1994 12:51:58 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ignoring application responses
-
- >>
- >>I ran into one of those just today. I had to close the copy of the
- >>just-saved script which was open in Script Editor...then the -49 error went
- >>away. And, -49 is:
- >>
- >>The read/write permission of only one access path to a file can allow writing
- >
- >So why would AppleScript, OSA Menu or anything else other than the Script
- >Editor/ScriptWizard need that script open for write access ?
-
- I think the answer has to do with properties, and the fact that properties
- do retain their values from one execution of an OSA Menu AppleScript script
- to the next. [As it happens, I was cleaning house yesterday, and deleted
- the test script which showed that. Early beta versions of OSA Menu had a
- problem with it, so I kept the script around for quite a while. Something
- like
-
- property counter: 0
-
- set counter to counter + 1
- display dialog "I have been executed " & (counter as string) & " times."
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 16 Aug 1994 12:52:02 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ?FileMaker Pro and AppleScript?
-
- >I'm using AS in FileMaker Pro and have the following problems. When using AS
- >to initiate a reloookup or replace command in FMP, AS hangs and times out.
- >The problem isn't the timeout time, rather it seems AS isn't aware that FMP
- >is finished with the task initiated. The only solution I've found is to
- >implement a dialog in AS after the command line to FMP. What a kludge. Also,
- >the reliability of menu hits is less than satisfactory. I know about enables,
- >yet, sometimes, even when enabled the do menu command fails to return the
- >proper response. I am resorting to initiating FMP internal scripts when I
- >shouldn't have to in order to get things done. Why is this so
- >unreliable?
-
- First, what version of FileMaker Pro are you using. Versions prior to
- 2.1v2 were considerably less reliable in this area than 2.1v2 is. Or,
- should I have said "...considerably more unreliable than..."?
-
- It's not AppleScript per se...Frontier script writers suffer similar slings
- and arrows.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 16 Aug 1994 13:01:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: WHAA!!
-
- I got my AS SDK 1.1 today from APDA. I had the impression, verified by
- APDA, that this included The Scriptable Finder. If it does, I can't find
- it. It has 'finder scripting software,' but not the scriptable finder.
-
- Am I looking in the wrong place, or can someone back me up on this?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Tue, 16 Aug 1994 13:03:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: WHAA!!
-
- >I got my AS SDK 1.1 today from APDA. I had the impression, verified by
- >APDA, that this included The Scriptable Finder. If it does, I can't find
- >it. It has 'finder scripting software,' but not the scriptable finder.
- >
- >Am I looking in the wrong place, or can someone back me up on this?
-
- The "Scriptable Finder" is any Finder 7.1.3 or later plus an Extension.
- The extension is:
-
- AppleScript=81:Scripting the Finder:Finder Scripting Setup:Finder Scripting
- Extension
-
- The Finder, if you are using a version earlier than 7.1.3 is:
- AppleScript=81:Scripting the Finder:Finder Scripting Setup:Finder
-
-
- --John (for the MIME-impaired: =81 is the trademark symbol)
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 16 Aug 1994 16:11:25 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <anbrown@HUSC9.HARVARD.EDU>
- Subject: Re: WHAA!!
- In-Reply-To: <01HFZEBHUQYA9VX2X4@NETOP8.HARVARD.EDU>
-
- Just wanted to let you know that if you are using finder 7.1.3, you will
- also need the new network extension in addition to the finder scripting
- extension if you plan on being ion any kid of network..
-
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphin's Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Wed, 17 Aug 1994 09:29:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: EightyLister: resource not found
-
- Robert Mark <rmark@ISDMNL.WR.USGS.GOV> writes:
-
- >When I run "List Additions" (EightyLister), after running for some time, I
- >get a "Resource wasn't found" error at:
- > "list events file (AdditionsFolder & ThisFile)"
-
- The problem is that you have a scripting addition with no "aete" resource
- in it--probably something that provides coercion handlers but no event
- handlers. I hit this with the "fwin coercion" addition that came with Daniel
- Ranson's Finder Scripting Toolkit.
-
- What the "List Additions" script needs is a "try/on error" block around the
- call to "list events", so it can ignore the error and carry on. But then, it's
- just a sample script, isn't it? :-)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 16 Aug 1994 15:39:52 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AS Server Application
- In-Reply-To: <199408111946.MAA01741@mail.netcom.com>
-
- On Thu, 11 Aug 1994, Joe Scripter wrote:
-
- > I'd like to write a script that would replace a server application I wrote
- > which accepts apple events. How do I make a script recognize and respond to
- > an apple event, in this case with a filespec as it's data
-
- I'm not sure if this got answered (I didn't see any replies but I just
- did a fairly blind purge of my mail), but here's my answer:
-
- The solution is that you can have a handler within a script application
- that becomes an AppleScript command of the application. This works much
- the same way as intercepting the "open" message with an "on open" handler.
-
- Set up your script application with the following command:
- on netFoo (fileSpec)
- -- netFoo being the name of the command
- -- Do some stuff here
- end netFoo
-
- Now, from other scripts around the network, you can say:
- tell application "Script Server" of machine "Remote Machine" of zone
- "Other Zone"
- netFoo (fileSpec)
- end tell
-
- Sending the fileSpec might get tricky, because AS may try and resolve the
- fileSpec on the local machine. I would send it as a string and then have
- the netFoo handler bring it back into a file. Also, one of the file
- coercers ("alias" and "file") doesn't look for the file, but simply
- generates the file spec and looks for it at runtime. I don't remember
- which of them does it, and this may only apply to the Read/Write
- Commands. It's been too long since I used AppleScript. Sending it as a
- string and having netFoo coerce it back will almost certainly work, however.
-
- Derrick
- =========================================================================
- Date: Tue, 16 Aug 1994 18:36:49 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: using Frontier & Excel
-
- Subject: Time:6:24 PM
- OFFICE MEMO using Frontier & Excel Date:8/16/94
- MacScripters,
- I'm using Excel and Frontier (versions 4.0 and 3.03 repectively) to keep a log
- of our backup system. The project has gone smoothly up to this part. I have
- completed all the scripts I need save for the following two
-
- 1.) A script that launches Excel (from Frontier) and opens the log file.
- There's a Frontier verb that handles this very action--app.startWithDocument (
- )--that takes the app's name and the document as arguments and returns true or
- false based on its success. For some reason, I can make the verb work from a
- QuickScript window--app.startWithDocument ("Excel", bkupLog )-- but not in the
- body of my script in the form:
- excel_ok = app.startWithDocument ("Excel", bkupLog )
-
- "bkupLog" is an Object Database cell containing a filespec for the log file I
- want to open. Frontier starts to launch Excel, flashing a message to that
- effect in its control bar, but the latter never quite makes it all the way up.
- I have to hit Command-Option-Escape to force-quit Excel. Switching back to
- Frontier I get an "Excel is either not running or not IAC-aware" alert.
- Obviously, Excel is IAC-aware. Launching it from the QuickScript window proves
- that. (Program-linking *is* switched on for Excel, by the way.)
-
- So what gives? Any thoughts?
-
- 2) To maintain my log file's readability I want to apply formatting for each
- week. I have a range of cells that I've rather painstakingly formatted that I
- would like to copy and paste to the end of the spreadsheet automatically each
- Monday morning. Subsequent entries would be added into this weeky template
- without the need to format each cell.
- I've tried various things to do this using "Apple Events and Microsoft Excel
- 4.0" and the glue scripts Frontier whips up as a guide. Without much success.
- Most of these experiments involve setting a range of cells and copying and
- pasting; shots in the dark. Frankly, I'm lost.
-
- Any help, thoughts, or comiseration welcome!!!
-
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- =========================================================================
- Date: Tue, 16 Aug 1994 22:25:16 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: WHAA!!
-
- At 5:01 PM 8/16/94, Roy S. Rapoport wrote:
-
- > I got my AS SDK 1.1 today from APDA. I had the impression, verified by
- > APDA, that this included The Scriptable Finder. If it does, I can't find
- > it. It has 'finder scripting software,' but not the scriptable finder.
-
- If you did NOT buy the CD-ROM package, ignore my first two sentences.
-
- Aha. As I suspected. What Apple is calling the "Finder Scripting
- Software" (which is now included with the Finder Scripting Guide in the
- commercial (no CD) version of the AS Scripters' package) is actually Finder
- 7.1.3 with an init to provide both scripting and recording. (This means,
- of course, that those of us who don't want or need the CD are better served
- by grabbing AS for $150 overnight. :-/) I guess we have to wait for 7.5 to
- get Finder 7.1.4 (which the tech support folks assured me is the finder in
- 7.5beta.)
-
- On startup the Finder chose to patch this init, Gatekeeper balked, and the
- system crashed with error +41, "Finder not found." I spent quite a bit of
- time on the fone with a wonderful person (whose name I didn't write down,
- alas) at Apple Tech Support trying to figure this out. We didn't, but he
- did tell me two thigns I didn't kow before, and was amazingly patient at
- Apple's expense.
-
- Anyway, if you run Gatekeeper, you'll have to grant the Finder "file res"
- privileges to avoid this crash. When the pacth is enabled, things work
- fine, and you can use the Drag Manager, which is WAY cool.
-
- Why did this take so long to diagnose? because I had notification alert
- dialogs turned off, and had NO CLUE that the Finder would be patching
- resource attributes that may as well have been patched at the factory.
-
- Good luck with it.
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Wed, 17 Aug 1994 14:39:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: WHAA!!
-
- Kiran Wagle <groo@NETCOM.COM> writes:
-
- >What Apple is calling the "Finder Scripting
- >Software" (which is now included with the Finder Scripting Guide in the
- >commercial (no CD) version of the AS Scripters' package) is actually Finder
- >7.1.3 with an init to provide both scripting and recording.
-
- It's not an init, it's an fext, if you want to get technical about it.
- It's code that's only loaded by the Finder, not by the System.
-
- >I guess we have to wait for 7.5 to
- >get Finder 7.1.4 (which the tech support folks assured me is the finder in
- >7.5beta.)
-
- The code in 7.1.4 and 7.1.3 is identical. According to some release notes
- I saw somewhere, the only difference was an increase in the size of a text
- field in the "About This Macintosh..." window. This has something to do with
- the fact that 7.1.4 is the Finder that ships with the Power Macs. ;-)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 16 Aug 1994 21:00:45 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: WHAA!!
-
- At 22:25 8/16/94 -0400, Kiran Wagle wrote:
- >At 5:01 PM 8/16/94, Roy S. Rapoport wrote:
- >
- >> I got my AS SDK 1.1 today from APDA. I had the impression, verified by
- >> APDA, that this included The Scriptable Finder. If it does, I can't find
- >> it. It has 'finder scripting software,' but not the scriptable finder.
- >
- >If you did NOT buy the CD-ROM package, ignore my first two sentences.
- >
- >Aha. As I suspected. What Apple is calling the "Finder Scripting
- >Software" (which is now included with the Finder Scripting Guide in the
- >commercial (no CD) version of the AS Scripters' package) is actually Finder
- >7.1.3 with an init to provide both scripting and recording. (This means,
- >of course, that those of us who don't want or need the CD are better served
- >by grabbing AS for $150 overnight. :-/) I guess we have to wait for 7.5 to
- >get Finder 7.1.4 (which the tech support folks assured me is the finder in
- >7.5beta.)
-
- The Scriptable Finder is readily available without buying the CD in
- question. As one example, APDA sells something like the "Finder Scripting
- Update" for about $20 (since I had the necessary parts, I didn't pay much
- attention).
-
- Finder 7.1.4 STILL needs the Finder Scripting Extension to be the
- "Scriptable Finder". 7.1.4 ships with Power Macs (and has since Power Mac
- day 1). It is 7.1.3 with only very very slight changes. Since Tech
- Support was willing to tell you that Finder 7.1.4 is in the beta 7.5, I
- guess I can confirm that without blowing non-disclosure too badly. The
- Finder Scripting Extension is also on the 7.5 beta CD.
-
- There was a post in a newsgroup today claiming that the poster's friend
- received a new Power Mac with the System 7.5 CD. If that's true, then the
- 7.5 non-disclosure would seem to have ended anyhow (since it was to run
- until the product shipped).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 17 Aug 1994 16:06:17 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Popups etc
-
- I'm looking for an extension or whatever that can supply popups.
-
- I want to setup a front-end for 4D Server for time-tracking so that users
- have a window that has a popup showing possible projects that they could be
- working on; when they change tasks they choose the new task from the popup,
- and the database gets notified.
-
- I looked at FrontMost/FaceSpan, but the thought of forking out $150 (& intl
- courier charges) put me off; plus it seems to be a bit slow; the reminder
- example on Danny's 1.1 book update disk running on a IIsi was positively
- glacial. Plus, as I hear, memory leaks. . .
-
- I had a quick look thru gaea, but couldn't find anything obvious (is some
- kind person ever going to write a full, explanatory listing of what wonders
- are enclosed on gaea/applescript?)
-
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Tue, 16 Aug 1994 23:40:47 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Visual cues that an AppleScript is running
-
- From: "Andy Cemelli" <ANDYC@WORDPERFECT.COM>
- >check out the spinning globe that at the very least is in our product
- >WordPerfect....
-
- Ah yes, the spinning globe. I had that in the Finder some versions back.
- Trivia tip: If you want to replace the Finder's busy cursor, place an acur
- and CURS resources in your Finder Preferences file. You'll have to make a
- copy in order to do that, but it's much better than hacking the Finder
- itself!
-
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- >How about a small script document as a cursor where each successive line
- >highlights and then moves to the next line. It would look like the document is
- >being read (or the script is being performed). You could also make the lines
- >scroll up making it look like it's going through the script.
-
- Why don't you ResEdit hackers crank out some acur, CURS and crsr resources?
- I'll use them if someone wants to whip some up. I might even get time to
- try doing some of my own. ;)
-
- Jon
- =========================================================================
- Date: Wed, 17 Aug 1994 09:18:58 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: M.R.LESBIREL@LIVJM.AC.UK
- Subject: Power Mac and Finder
-
- I disagree with the claim that Power Macintosh has always shipped with Finder
- 7.1.3 or upwards. The one I'm sitting in front of, here in England, shipped with
- Finder 7.1.2.
-
- If this is just England or is true for the first Power Macs I don't know.
-
- Martyn Lesbirel - Computing Officer
- Liverpool John Moores University
-
- M.R.Lesbirel@livjm.ac.uk
- =========================================================================
- Date: Wed, 17 Aug 1994 07:57:27 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@LIBRIS.PUBLIC.LIB.GA.US>
- Subject: HyperTalk/AppleScript communication
-
- This button script (using HyperTalk in HyperCard) works:
-
- on mouseUp
- global response
- put response into cd fld "testF"
- end mouseUp
-
- This button script (using AppleScript in HyperCard) does not work:
-
- on mouseUp
- global response
- tell application "HyperCard"
- copy response to card field "testF"
- end tell
- end mouseUp
-
- I get the following error message:
-
- The variable response is not defined.
-
- Now this is a simple script so it wasn't a problem in this case but
- clicking on the "script" button of this dialog showed me the offending
- script but DID NOT place the cursor on the offending line. Hrummph!
-
- I know that the HyperTalk global is viable throughout the testing as I can
- subsequently run the first (successful) test after the second
- (unsuccessful) test and see it work just fine.
-
- Thus, I am now quite curious as to how HyperTalk and AppleScript (indeed
- any combination of OSA-compliant scripting languages) might best
- communicate with one another without having to write data to disk in any
- way.
-
- This example covers what I think should be the HyperTalk to AppleScript
- dialog. A few weeks ago I was persuing the AppleScript to HyperTalk side
- of the conversation and learned the following from Peter Speck:
-
- on mouseUp
- copy ((the first item of (list disks)) & ":") to diskName
- copy "Untitled.GIF" to filename
-
- -- the easiest way to create variables!
- do script "global GIFTempDiskName,GIFTempFileName"
-
- copy diskName to variable "GIFTempDiskName"
- copy "Untitled.GIF" to variable "GIFTempFileName"
- end mouseUp
-
- My interpretation of this led me to:
-
-
- [...a bunch of AppleScript code...]
-
- tell application "HyperCard"
- do script "global fileONE"
- copy DataRecd to variable "fileONE"
- end tell
-
- ...which does a fine job of getting the contents of an AppleScript variable
- (DataRecd) into a HyperCard global (fileONE).
-
- What I am looking for are the general rules for exchanging data contained
- in global variables between HyperTalk and AppleScript.
-
- I have most of the currently available references for both HyperTalk and
- AppleScript but so far have failed to find a thorough discussion of the
- topic of OSA script intercommunication. Please point me in the direction
- of such a reference if there is one or, better yet, explain this to me and
- to any others who might be as puzzled as I.
-
- =====================================================================
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- =====================================================================
- =========================================================================
- Date: Wed, 17 Aug 1994 08:29:35 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: AS Programmers' Dialect
-
- Hi folks,
-
- The AS manual mentions something called the "Programmers' Dialect."
-
- Does anyone know if this actually exists, and where it can be found?
-
- Thanks,
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Wed, 17 Aug 1994 14:57:55 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Johan Solve <johan.solve@ITN.HH.SE>
- Subject: Eudora 1.4.3 auto-sorting?
-
- I need a way to automatically sort my different mailboxes by date. Is it
- possible to do this with AppleScript?
- The dictionary of Eudora doesn't mention sorting, but perhaps I'm
- overlooking something. Perhaps the easiest way is to use the MenuEvents
- extension and osax to cycle through the mailboxes and sort each one of
- them?
-
- Please Cc: replies to johan.solve@itn.hh.se. I don't keep up with the mail
- flow in Macscripting.
-
- ____________________________________________________________________
- "
- JOHAN SOLVE Department of Science and Technology
- <johan.solve@itn.hh.se> University College of Halmstad, Sweden
- =========================================================================
- Date: Wed, 17 Aug 1994 09:25:47 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
- Subject: Re: Popups etc
-
- >I'm looking for an extension or whatever that can supply popups.
- >
- >I want to setup a front-end for 4D Server for time-tracking so that users
- >have a window that has a popup showing possible projects that they could be
- >working on; when they change tasks they choose the new task from the popup,
- >and the database gets notified.
- >
- >I looked at FrontMost/FaceSpan, but the thought of forking out $150 (& intl
- >courier charges) put me off; plus it seems to be a bit slow; the reminder
- >example on Danny's 1.1 book update disk running on a IIsi was positively
- >glacial. Plus, as I hear, memory leaks. . .
- >
- >I had a quick look thru gaea, but couldn't find anything obvious (is some
- >kind person ever going to write a full, explanatory listing of what wonders
- >are enclosed on gaea/applescript?)
- >
- HyperCard 2.2 will do popup buttons quite nicely AND it supports
- AppleScript as well as HyperTalk. The new clickable lists are cool too!
-
- =====================================================================
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- =====================================================================
- =========================================================================
- Date: Wed, 17 Aug 1994 07:58:14 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roy Roper <r-roper@UIUC.EDU>
- Subject: Re> Eudora 1.4.3 auto-sorting?
-
- fyi
-
- There is an aoce listserv in operation from the University of Michigan.
- Some of these issues are also being discussed there.
- Information about this list serv can be obtained by contacting
- gavin.eadie@umich.edu --
-
- ------ From: Macintosh Scripting Systems, Wed, Aug 17, 1994 ------
-
- I need a way to automatically sort my different mailboxes by date. Is it
- possible to do this with AppleScript?
- The dictionary of Eudora doesn't mention sorting, but perhaps I'm
- overlooking something. Perhaps the easiest way is to use the MenuEvents
- extension and osax to cycle through the mailboxes and sort each one of
- them?
-
- Please Cc: replies to johan.solve@itn.hh.se. I don't keep up with the mail
- flow in Macscripting.
-
- ____________________________________________________________________
- "
- JOHAN SOLVE Department of Science and Technology
- <johan.solve@itn.hh.se> University College of Halmstad, Sweden
- =========================================================================
- Date: Wed, 17 Aug 1994 08:21:00 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Evad, Paul" <PEVAD@PUBAFFAIR.ENV.GOV.BC.CA>
- Subject: Re: WHAA!!
-
- >The Scriptable Finder is readily available without buying the CD in
- >question. As one example, APDA sells something like the "Finder Scripting
- >Update" for about $20 (since I had the necessary parts, I didn't pay much
- >attention).
-
- >Finder 7.1.4 STILL needs the Finder Scripting Extension to be the
- >"Scriptable Finder". 7.1.4 ships with Power Macs (and has since Power Mac
- day 1).
-
- I'm still a bit confused on this subject. I have a power mac with Finder
- 7.1.4, so from this thread I understand that I need an extension "Finder
- Scripting Extension".
-
- Is this extension available from an FTP site or anything, you would think
- that it would have been included in the Power Mac's.
-
- - Paul Evad
- uj032@freenet.victoria.bc.ca
- =========================================================================
- Date: Wed, 17 Aug 1994 09:05:58 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Power Mac and Finder
-
- >I disagree with the claim that Power Macintosh has always shipped with Finder
- >7.1.3 or upwards. The one I'm sitting in front of, here in England, shipped
- >with
- >Finder 7.1.2.
- >
- >If this is just England or is true for the first Power Macs I don't know.
-
- It might be a localization matter. However: here, the System version is
- 7.1.2 on the Power Mac CD, but the Finder version is 7.1.4. Try doing a
- Finder Get Info command on the Finder icon in your system folder.
-
- The System and Finder versions desynchonized as of "System 7Pro".
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 17 Aug 1994 12:15:54 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: WHAA!!
- In-Reply-To: <no.id> from "Evad, Paul" at Aug 17, 94 08:21:00 am
-
- --Evad, Paul wrote:
- >
- >I'm still a bit confused on this subject. I have a power mac with Finder
- >7.1.4, so from this thread I understand that I need an extension "Finder
- >Scripting Extension".
-
- You will need Finder Scripting Extension if you plan to do any
- serious scripting of the Finder with AppleScript. Or if you would like
- to be able to record AppleScripts from the Finder.
-
- >Is this extension available from an FTP site or anything, you would think
- >that it would have been included in the Power Mac's.
-
- Well, you might think that, but that's now how AppleScript has
- evolved. If you just want the Finder Scripting Extension you can order
- the Finder Scripting Update from APDA for about $20, and it includes the
- AppleScript Finder Guide (English Dialect). A great book that can be
- found for $19.95 at fine bookstores near you (Our main bookstore had it
- in stock ;).
-
- -Hades
- =========================================================================
- Date: Wed, 17 Aug 1994 11:13:54 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Fred.Terry." <pfterry@LKS.CSI.COM>
- Subject: creation of a MacScripting newsgroup
-
- Folks,
-
- I've been asked again to convert the MacScripting mailing list into a
- newsgroup. While I'm not crazy about this idea, Andy and I have decided to
- investigate the possiblities. However, before I initiate the rather lengthy
- process of creating a newsgroup, I want to find out how many of the nearly
- 800
- people on this list want a newsgroup.
-
- I have attached a polling form to the end of this message. I'd appreciate
- your
- completing and returning it DIRECTLY to me at pfterry@lks.csi.com if you are
- interested in participating. Please do not send the form back into the list.
- Let's keep the bandwidth low. WARNING: on most systems, replying to this
- message automatically sends the mail back into the list. YOU HAVE TO PUT MY
- ADDRESS IN THE TO FIELD. Sorry to yell, but sometimes we don't pay attention:
- I'm a parent; I know.
-
- The poll is open until August 31; I'll go with the responses I get in that 2
- week period.
-
- For any of you that don't want to see the mailing list go away, I will say
- that the listserv gods at Dartmouth tell me I can gateway the mailing list
- into the newsgroup (and vice versa). If we ultimately go through with the
- creation of a newsgroup, the mailing list will not go away.
-
- A final note: I'm not worrying about a newsgroup name at the moment, so I'll
- ignore any name proposals.
-
- Thanks for taking the time to read and respond to this message. Sorry for
- increasing the mailing load with administrative matters.
-
- pf
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~SNIP HERE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- ____ Yes
-
- ____ No
-
-
- Should the mailing list be maintained and messages gatewayed to the newsgroup
- and vice versa.
-
- ____ Yes
-
- ____ No
- =========================================================================
- Date: Wed, 17 Aug 1994 09:40:33 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Thomas C. O'Brien" <tomo@UCLINK.BERKELEY.EDU>
- Subject: Re: HyperTalk/AppleScript communication
-
- Frank,
-
- This is indeed a painful "feature" of Applescript & HyperCard. I
- discovered that the only way to pass information seems to be through
- function calls.
-
- Applescript button:
- on mouseUp
- copy getrecipients() to recipients
-
- tell application "Eudora1.4.3"
- make message InsertHere end of mailbox "out" of mail folder ""
- set field "to" of message 0 to recipients
- set field "subject" of message 0 to "This is a test"
- set field "" of message 0 to "text for the body of the message"
- --queue message 0
- --Eudora Script Courtesy of QualComm
- activate
- end tell
- end mouseUp
-
-
- Then in the Stack (or BG or Card) Script:
- on getrecipients
- get cd fld "e-mailees" of cd "e-mail"
- put it into recipients
- return recipients (anything "returned" gets passed back to the
- AppleScript)
- end getrecipients
-
-
- Regards,
-
- Tom O'Brien
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Thomas C. O'Brien
- Instructional Technology Coordinator
- Academic Achievement Division
- 2515 Channing Way
- UC Berkeley
- Berkeley CA 94720
-
- <a href="http://128.32.252.17/Tomo's_Home_Page.html">Tomo -
- tomo@uclink.berkeley.edu</a>
- (510) 643-9569
- =========================================================================
- Date: Wed, 17 Aug 1994 13:27:29 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: creation of a MacScripting newsgroup
- In-Reply-To: <no.id> from "Fred.Terry." at Aug 17, 94 11:13:54 am
-
- --Fred Terry wrote:
- >
- >I've been asked again to convert the MacScripting mailing list into a
- >newsgroup. While I'm not crazy about this idea, Andy and I have decided
- >to investigate the possiblities. However, before I initiate the rather
- >lengthy process of creating a newsgroup, I want to find out how many of
- >the nearly 800 people on this list want a newsgroup.
-
- I'll be voting on the poll later... Back before the creation of the
- MacScrpt mailing list there was a lot of discussion about the creation
- of a Scripting newsgroup. It seemed to garner some support, but having
- seen how little traffic there is in the comp.sys.mac.* newsgroups on
- AppleScript (there's actually more on the Info-Mac digest than in all of
- the csm.* groups combined these days) I don't think creating a newsgroup
- is going to help anyone out. Most of the people who ask a lot of
- scripting questions get pointed to this mailing list, and most of us
- here seem pretty happy with things the way they are. And I, personally,
- have a really big problem with the "if you build it, they will come"
- philosophy of newsgroup creation. So I guess that's about all I have to
- say on this, I'll go vote in the poll now.
-
- -Hades
- =========================================================================
- Date: Wed, 17 Aug 1994 13:28:56 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: creation of a MacScripting newsgroup
- In-Reply-To: <no.id> from "Fred.Terry." at Aug 17, 94 11:13:54 am
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- ____ Yes
-
- _xx_ No
-
-
- Should the mailing list be maintained and messages gatewayed to the newsgroup
- and vice versa.
-
- _xx_ Yes
-
- ____ No
- =========================================================================
- Date: Wed, 17 Aug 1994 11:06:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Looking for beta testers
-
- Aladdin Systems is looking for a few good testers to help us out in testing
- the COMPLETELY REVAMPED (read: Object Model) Apple event support in the
- forthcoming StuffIt Deluxe 3.5.
-
- To qualify, you must already be a registered owner of StuffIt Deluxe and be
- a knowledgable and experienced scripter (AppleScript, Frontier, HyperTalk,
- QuicKey Script, etc.) You must also have FTP access and be willing to deal
- with "unfinished" software.
-
- If you are both qualified and interested, please send a message to
- dalamar@netcom.com (DO NOT RESPOND TO THIS MESSAGE - I WILL IGNORE IT!!!!)
- telling us who you are and your qualifications for the job....
-
-
- Thanks in advance!
-
-
- Leonard Rosenthol
- Aladdin Systems, Inc.
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Wed, 17 Aug 1994 14:29:58 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: creation of a MacScripting newsgroup
- In-Reply-To: Your message of "Wed, 17 Aug 94 13:27:29 EDT"
-
- Brian,
-
- >>I've been asked again to convert the MacScripting mailing list into a
- >>newsgroup. While I'm not crazy about this idea, Andy and I have decided
- >>to investigate the possiblities. However, before I initiate the rather
- >>lengthy process of creating a newsgroup, I want to find out how many of
- >>the nearly 800 people on this list want a newsgroup.
- >
- > I'll be voting on the poll later... Back before the creation of the
- >MacScrpt mailing list there was a lot of discussion about the creation
- >of a Scripting newsgroup. It seemed to garner some support, but having
- >seen how little traffic there is in the comp.sys.mac.* newsgroups on
- >AppleScript (there's actually more on the Info-Mac digest than in all of
- >the csm.* groups combined these days) I don't think creating a newsgroup
- >is going to help anyone out. Most of the people who ask a lot of
- >scripting questions get pointed to this mailing list, and most of us
- >here seem pretty happy with things the way they are. And I, personally,
- >have a really big problem with the "if you build it, they will come"
- >philosophy of newsgroup creation. So I guess that's about all I have to
- >say on this, I'll go vote in the poll now.
-
- I remember your messages. I feel the same way today that I did back then: a
- newsgroup is a big lose. I'm not certain that the newsgroup is going to
- improve communication. I have a hunch that the noise ratio will increase. Some
- people who aren't on the list but are on CI$ and AOL talked to a guy at Main
- Event that I know. They all seemed to think that this should be a newsgroup,
- though I can't imagine why. It has to be more expensive to read news than get
- mail on the commercial services.
-
- As an aside, I've only had about 10 messages over the last year requesting the
- newsgroup, but the poll is predominately positive. I dunno.
-
- Thanks for taking the time to send a comment along with the "ballot".
-
- pf
- =========================================================================
- Date: Wed, 17 Aug 1994 13:23:28 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: creation of a MacScripting newsgroup
-
- >Folks,
- >
- >I've been asked again to convert the MacScripting mailing list into a
- >newsgroup. While I'm not crazy about this idea, Andy and I have decided to
- >investigate the possiblities. However, before I initiate the rather lengthy
- >process of creating a newsgroup, I want to find out how many of the nearly
- >800
- >people on this list want a newsgroup.
- >
- >I have attached a polling form to the end of this message. I'd appreciate
- >your
- >completing and returning it DIRECTLY to me at pfterry@lks.csi.com if you are
- >interested in participating. Please do not send the form back into the list.
- >Let's keep the bandwidth low. WARNING: on most systems, replying to this
- >message automatically sends the mail back into the list. YOU HAVE TO PUT MY
- >ADDRESS IN THE TO FIELD. Sorry to yell, but sometimes we don't pay attention:
- >I'm a parent; I know.
- >
- >The poll is open until August 31; I'll go with the responses I get in that 2
- >week period.
- >
- >For any of you that don't want to see the mailing list go away, I will say
- >that the listserv gods at Dartmouth tell me I can gateway the mailing list
- >into the newsgroup (and vice versa). If we ultimately go through with the
- >creation of a newsgroup, the mailing list will not go away.
- >
- >A final note: I'm not worrying about a newsgroup name at the moment, so I'll
- >ignore any name proposals.
- >
- >Thanks for taking the time to read and respond to this message. Sorry for
- >increasing the mailing load with administrative matters.
- >
- >pf
- >
- >
- >~~~~~~~~~~~~~~~~~~~~~~~~~~~SNIP HERE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >
- >Should I begin the process of creating a MacScripting newsgroup?
- >
- >__x__ Yes
- >
- >____ No
- >
- >
- >Should the mailing list be maintained and messages gatewayed to the newsgroup
- >and vice versa.
- >
- >__x__ Yes
- >
- >____ No
- =========================================================================
- Date: Wed, 17 Aug 1994 13:34:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
- Subject: Re: HyperTalk/AppleScript communication
-
- >This is indeed a painful "feature" of Applescript & HyperCard. I
- >discovered that the only way to pass information seems to be through
- >function calls.
-
- I find that AppleScript can pull info directly from fields but that the
- abbreviations for card and field and background do not work. You must spell
- them out.
-
- AppleScript button
- on mouseup
- Copy card field "the message" to themsg
- Copy card field "the addresses" to theadd
- tell application "Eudora1.4.3"
- make message InsertHere end of mailbox "out" of mail folder ""
- set field "to" of message 0 to theadd
- set field "subject" of message 0 to "This is a test"
- set field "" of message 0 to themsg
- queue message 0
- activate
- end tell
- end mouseUp
-
-
- Kee Nethery
-
- __________________________________________________________________
- Kee Nethery
- 1442-A Walnut Street #362
- Berkeley, CA 94709-1405
- =========================================================================
- Date: Wed, 17 Aug 1994 17:54:36 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re: creation of a MacScripting newsgroup
-
- >They all seemed to think that this should be a newsgroup,
- >though I can't imagine why. It has to be more expensive to read news than get
- >mail on the commercial services.
- >
- >As an aside, I've only had about 10 messages over the last year requesting the
- >newsgroup, but the poll is predominately positive. I dunno.
-
- Here's another perspective on this issue:
-
- It is my impression that many local user group BBS's may have Internet
- e-mail access but no access to other Internet services like the newsgroups;
- actually, some of the commercial BBS's do not have access to newsgroups
- either. However, the common thread, in terms of access, is e-mail. It
- seems to me that a mailing list is a better vehicle for most people,
- especially those without newsgroup access.
-
- Just my 2 cents.
-
- Lee.
-
- Lee K. Hoong
- Emory University
- Atlanta, GA 30322
- Internet: lhoong@unix.cc.emory.edu
- AOL: LHOONG
- ==========================
- Opinions and comments expressed are mine; I do not represent Emory
- University.
- =========================================================================
- Date: Wed, 17 Aug 1994 15:24:22 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: using Frontier & Excel
-
- >
- >1.) A script that launches Excel (from Frontier) and opens the log file.
- >There's a Frontier verb that handles this very action--app.startWithDocument (
- >)--that takes the app's name and the document as arguments and returns true or
- >false based on its success. For some reason, I can make the verb work from a
- >QuickScript window--app.startWithDocument ("Excel", bkupLog )-- but not in the
- >body of my script in the form:
- >excel_ok = app.startWithDocument ("Excel", bkupLog )
- >
- >"bkupLog" is an Object Database cell containing a filespec for the log file I
- >want to open. Frontier starts to launch Excel, flashing a message to that
- >effect in its control bar, but the latter never quite makes it all the way up.
- >I have to hit Command-Option-Escape to force-quit Excel. Switching back to
- >Frontier I get an "Excel is either not running or not IAC-aware" alert.
- >Obviously, Excel is IAC-aware. Launching it from the QuickScript window proves
- >that. (Program-linking *is* switched on for Excel, by the way.)
- >
-
- I've seen this sort of problem before with Excel. It seems to be
- timing-related. It only happens when Excel needs to be launch, right? If
- so, you might try spacing out the time between the launch and the open
- event:
-
- if not sys.appIsRunning (Excel.id)
- app.startWithDocument ("Excel", "" )
- clock.waitSeconds (4)
- Excel.openDocument (bkupLog)
-
-
- >2) To maintain my log file's readability I want to apply formatting for each
- >week. I have a range of cells that I've rather painstakingly formatted that I
- >would like to copy and paste to the end of the spreadsheet automatically each
- >Monday morning. Subsequent entries would be added into this weeky template
- >without the need to format each cell.
- >I've tried various things to do this using "Apple Events and Microsoft Excel
- >4.0" and the glue scripts Frontier whips up as a guide. Without much success.
- >Most of these experiments involve setting a range of cells and copying and
- >pasting; shots in the dark. Frankly, I'm lost.
- >
-
- What specific formatting elements? Here's how to copy over a couple; you
- can extrapolate using appropriate foratting names from the Excel verb
- table:
-
- with objectModel, Excel, document [1]
- x = get (cell ["r1c1"].style)
- set (cell [new].style, x)
-
- x = get (cell ["r1c1"].bottomBorder)
- set (cell [new].bottomBorder, x)
-
- etc.
-
- Doug
- =========================================================================
- Date: Wed, 17 Aug 1994 18:55:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Jones <STJONES@ACAD1.MTSU.EDU>
- Subject: Re: creation of a MacScripting newsgroup
-
- Some folks on this list seem to be able to script but not read.
-
- Didn't the poll ask specifically that you NOT mail replies back to thelist!?!
-
-
- stj
- Steven T. Jones
- Assistant Professor of Design & Technology
- Middle Tennessee State University
- =========================================================================
- Date: Thu, 18 Aug 1994 09:51:10 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Craig Richmond <craig@ECEL.UWA.EDU.AU>
- Subject: Re: creation of a MacScripting newsgroup
-
- >I've been asked again to convert the MacScripting mailing list into a
- >newsgroup. While I'm not crazy about this idea, Andy and I have decided to
- >investigate the possiblities. However, before I initiate the rather lengthy
- >process of creating a newsgroup, I want to find out how many of the nearly 800
- >people on this list want a newsgroup.
-
- These debates rage regularly in mailing lists and are accompanied by the
- just as common "Lets split the newsgroup" debates.
-
- Mailing lists are appropriate when :-
-
- * subject matter is targeted at a small special interest group
- * the number of likely contributers is small
- * nobody other than the contributers will be interested
- * the discussions/information are be private
-
- Newsgroups are appropriate when :-
-
- * subject matter is of interest to hundreds/thousands of people
- * there are many potential contributers
- * people other than the primary contributers are likely to gain from the info
-
- When Applescript first came out, it was so special interest that a
- newsgroup would not have been warranted. With 800 people on the list, it
- is perhaps time to create a newsgroup and do our best to spread the word to
- the rest of the macintosh community. Applescript is an underutilised
- resource. With the immenant release of 7.5, everyone will end up with
- copies of Applescript on their computers (legally or illegally) within a
- year or so. If creating a a newsgroup helps encourage and foster
- Applescript adoption by the masses, then it can only be good for us. If
- you are going to make a newsgroup, I would suggest that it goes under
- programmer because that is what most of the traffic has been and there are
- unlikely to be too many applescript related non-programmer inquiries
- anyway.
-
- MACSCRIPT has become a very high volume group. It accounted for about 40%
- of my mail while I was away for a couple of weeks. There are probably a
- lot of people who can read newsgroups for free but must pay for each
- message they send/recieve. Having a newsgroup makes life a lot easier for
- these people. It is convenient to let the gateway thing work, but if the
- newsgroup takes off big time, you are going to get enormous amounts of
- traffic. Imagine c.s.m.programmer landing in your mailbox every day!
-
- I'm not going to vote seeing as I am pretty much a lurker and don't end up
- reading much anyway. In this sense a newsgroup would probably suit me
- better as well. Newsgroups get better network utilisation than mailing
- lists because only one copy of a message should traverse any network link.
-
- So bear this in mind people and make your decision.
-
- Craig
-
- --
- Craig Richmond, Computer Officer, ECEL Computing Services +61 9 380 1405
- The University of Western Australia or 380 3860 Email for FAX Number
- craig@ecel.uwa.edu.au Dvorak Keyboards RULE! "Messes are only acceptable
- if users make them. Applications aren't allowed this freedom" I.M.VI 2-4
- =========================================================================
- Date: Thu, 18 Aug 1994 02:03:52 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Scripting newsgroup, and SLIP
-
- > Should the mailing list be maintained and messages gatewayed to the newsgroup
- > and vice versa.
-
- No no, a thousand times no! The list should be maintained, but NOT
- gatewayed to the newsgroup or vice versa. Gatewaying the early music
- mailing list to rec.musc.early has been a big source of headaches for those
- who can't handle the volume and noise and orneriness of a usenet newsgroup
- dumped into their mailbox.
-
- Of course, WE have scripts and filters to manage thigns better than they do.
-
- That said, I'm ambivalent on the notion of a newsgroup. When i first got a
- copy of AS, I DID look for comp.sys.mac.scripting, or at least I would have
- if I'd not been told of the list sooner. So perhaps it is a good idea,
- low-volume or not, because it's a way to spread the word about the list in
- a form that people will notice. OTOH, I'm don't know if the volume makes
- it worthwhile--yet.
-
- I think, however, that as scriptable apps become more common, and AS
- becomes more commonly available, we'll see a lot more scripters. But do we
- want the clueless newbie questions dumped into the mailboxes of those of us
- who are too busy to deal?
-
- Speaking of clueless newbies, I seem to recall rumors of scripting (Inter?)
- SLIP? Since I just got a copy of The Internet Adapter (tm), I need a good
- SLIP, and I'd prefer a scriptable one. I can't find anything for SLIP on
- the archives, tho I did find a PPP.
-
- ~ Kiran <groo@netcom.com> (who always answers clueless Eudora questions)
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Thu, 18 Aug 1994 09:00:43 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: M.R.LESBIREL@LIVJM.AC.UK
- Subject: Re: Power Mac and Finder
-
- >It might be a localization matter. However: here, the System version is
- >7.1.2 on the Power Mac CD, but the Finder version is 7.1.4. Try doing a
- >Finder Get Info command on the Finder icon in your system folder.
-
- That's exactyl what I did to get the finder version. Quite probably localization
- and very annoying. I'm was hoping for a scriptable finder to get a ahead start
- on
- developing an AppleScript to handle our Maciintosh Template installation.
-
- Martyn Lesbirel
- Computing Officer - Systems & Networks
- Liverpool John Moores University
- E-mail: M.R.Lesbirel@livjm.ac.uk Tel:051 231-2310
- =========================================================================
- Date: Thu, 18 Aug 1994 06:08:24 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: creation of a MacScripting newsgroup
-
- > is perhaps time to create a newsgroup and do our best to spread the word to
- > the rest of the macintosh community. Applescript is an underutilised
- > resource. With the immenant release of 7.5, everyone will end up with
-
- I hadn't thought about this, and I agree. AppleScript is something WE
- have, and THEY don't have, and the more people who discover it and use it
- and bug their application developers to add full AS support, the better off
- we all are.
-
- > Imagine c.s.m.programmer landing in your mailbox every day!
-
- Yeah--no gateway.
-
- ~ Kiran <groo@netcom.com>
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Thu, 18 Aug 1994 08:16:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: Re: using Frontier & Excel
-
- >1.) A script that launches Excel (from Frontier) and opens the log file.
- >There's a Frontier verb that handles this very action--app.startWithDocument
- (
- >)--that takes the app's name and the document as arguments and returns true
- or
- >false based on its success. For some reason, I can make the verb work from a
- >QuickScript window--app.startWithDocument ("Excel", bkupLog )-- but not in
- the
- >body of my script in the form:
- >excel_ok = app.startWithDocument ("Excel", bkupLog )
-
- Have you tried
- launch.anything(bkupLog)
-
- This always seems to work for me, the behaviour (I am Canadian) is akin to a
- Finder double-click. Even if the file was not created in Excel, you can
- change the file creator to have the file cause Excel to launch.
-
-
- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
- | Everything is very very deeply \
- | I N T E R T W I N G L E D \
- | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
- =========================================================================
- Date: Thu, 18 Aug 1994 09:08:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: Re: Pictures from QuarkXPress
-
- >Does anyone know if someone can get a list pictures like they can get a font
- >list. I don't see anything in the documentation about this. Any ideas?
-
- In Frontier, something like this works like a charm and will return a list of
- all the pictures in a document
-
- with objectmodel,qxp,defs
- with document[1]
- foo = get(picturebox[all].image[1].filepath)
-
- foo will be a list where each element is the full path if the image.
- Note that picture boxes that have no image in them will have a filepath of
- 'null'.
- People often use picture boxes as design elements, so this can give you
- headache.
- Also, if you have lots of images or lots of pages, you may want to do the
- 'get' on a page by page basis and then total the size of the lists.
-
- To avoid you having to strain out boxes without pictures, you can use
-
- with objectmodel,qxp,defs
- with document[1].picturebox[all].image[filepath * "null"]
- bar = get(filepath)
-
- Frontier coerces "null" to "'null'" and * is not equals ( != )
- This gets Quark to do the work of figuring out how many actual images there
- are placed in your document.
- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
- | Everything is very very deeply \
- | I N T E R T W I N G L E D \
- | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
- =========================================================================
- Date: Thu, 18 Aug 1994 09:34:43 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: Re: creation of a MacScripting newsgroup
-
- >When Applescript first came out, it was so special interest that a
- >newsgroup would not have been warranted. With 800 people on the list, it
- >is perhaps time to create a newsgroup and do our best to spread the word to
- >the rest of the macintosh community. Applescript is an underutilised
- >resource. With the immenant release of 7.5, everyone will end up with
- >copies of Applescript on their computers (legally or illegally) within a
- >year or so. If creating a a newsgroup helps encourage and foster
- >Applescript adoption by the masses, then it can only be good for us. If
- >you are going to make a newsgroup, I would suggest that it goes under
- >programmer because that is what most of the traffic has been and there are
- >unlikely to be too many applescript related non-programmer inquiries
- >anyway.
-
- Pardon me but I am in no way attempting to foster the use of AppleScript!
- Excuse me, but it sucks. (Flame me later, but now I rant).
-
- I thought this mailing list was concerned with *Macintosh scripting*.
- Most of you may only use AppleScript, but some of us *never* use it.
-
- BTW, the amount of traffic there is in this mailing list having to do with
- people trying to do things that are already built into Frontier (and quite
- reliably I might add) is astounding, but alas I rant again.
-
- I just wanted to snip in the bud the automatic linking of Macintosh scripting
- with AppleScript.
-
- I too agree that scripting is under-utilized, but feel that an unmoderated
- newsgroup would just create so much noise.
-
- There, my rant is done (For now... ;)
-
- David
-
- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
- | Everything is very very deeply \
- | I N T E R T W I N G L E D \
- | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
- =========================================================================
- Date: Thu, 18 Aug 1994 19:02:03 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: creation of a MacScripting newsgroup
-
- >Should I begin the process of creating a MacScripting newsgroup?
- >
- >_xx_ Yes
- >
- >____ No
- >
- >
- >Should the mailing list be maintained and messages gatewayed to the newsgroup
- >and vice versa.
- >
- >____ Yes
- >
- >_xx_ No
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Thu, 18 Aug 1994 12:35:28 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: creation of a MacScripting newsgroup
-
- >
- >Pardon me but I am in no way attempting to foster the use of AppleScript!
- >Excuse me, but it sucks. (Flame me later, but now I rant).
- >
-
-
- >
- >David
- >
-
- Please expound upon your basic thesis.
-
- Some examples of such suckingness would be good.
- eg What exactly does it suck? and where does it suck it to?
-
- Frank C.
- R&E
- =========================================================================
- Date: Thu, 18 Aug 1994 11:05:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: FaceSpan -- Wait, Please
-
- I must be missing this basic idea, but here's my problem.
-
- I want to open a window and wait until a button is hit.
- Then I want to open another window.
-
- The first step stumps me -- how can I tell AS to open a window (well, 'open
- window named "x" works :) ) and *then wait until one of the buttons is
- hit*?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Thu, 18 Aug 1994 14:30:26 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: Re: FaceSpan -- Wait, Please
-
- At 11:05 AM 8/18/94 -0800, you wrote:
- >The first step stumps me -- how can I tell AS to open a window (well, 'open
- >window named "x" works :) ) and *then wait until one of the buttons is
- >hit*?
- >
- >-roy
- >
- >Roy S. Rapoport rsr@berksys.com
- >2095 Rose St Berkeley CA 94709
-
- How about:
-
- open window "Welcome" returning =AC
- {closing item:button}
- if the name of button is "pshOK" then
- open window "Main" with properties =AC
- {{position:centered in main}}
- else
- quit
- end if
-
- -Steve.
- =========================================================================
- Date: Thu, 18 Aug 1994 12:05:31 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Eric Bowman <Eric.Bowman@DIRECTORY.REED.EDU>
- Subject: Scripting BlitzMail 2.0.1
-
- Has anyone successfully scripted Blitzmail to do anything interesting like
- sort mail? I am a novice AppleScripter, and barely know where to begin, but
- Blitzmail seemed like a reasonable thing to play with since, well, I have it.
- :)
-
- I would be very appreciative if anyone felt like sharing any of their
- scripts, particularly for sorting mail into folders based on sender, subject,
- and/or body content.
-
- Thanks,
- bobo
- --
- bobo@reed.edu
- "Sure thing, giant beer!"
- =========================================================================
- Date: Thu, 18 Aug 1994 15:26:53 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Scripting BlitzMail 2.0.1
- In-Reply-To: <no.id> from "Eric Bowman" at Aug 18, 94 12:05:31 pm
-
- --Eric Bowman wrote:
- >
- >Has anyone successfully scripted Blitzmail to do anything interesting like
- >sort mail? I am a novice AppleScripter, and barely know where to begin, but
- >Blitzmail seemed like a reasonable thing to play with since, well, I have it.
- >:)
-
- I've probably spent more time scripting BlitzMail than just about
- anyone else in this country. (Note: this isn't too tough since BlitzMail
- is only used at Reed College and Dartmouth College, and I've been
- scripting it since AppleScript support was put into the beta version of
- 2.0)
-
- >I would be very appreciative if anyone felt like sharing any of their
- >scripts, particularly for sorting mail into folders based on sender, subject,
- >and/or body content.
-
- Let me know what kinds of snags you are running into, and I'll see
- what I can do to help you out. And private e-mail is probably the best
- place for our discussion.
-
- -Hades
- =========================================================================
- Date: Thu, 18 Aug 1994 15:25:50 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <ANBROWN@HUSC.BITNET>
- Subject: Re: FaceSpan -- Wait, Please
- In-Reply-To: <01HG22KPJQDE9VXUKI@NETOP8.HARVARD.EDU>
-
- Well, something that I do that is kindof like a cheat is to make the
- window modal, and then the whole program will wait until you tell theat
- window to close. Be sure to set the autoclose property of the window to
- true that way as soon as you press the button, the window will close...
-
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphins Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Thu, 18 Aug 1994 15:42:05 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <anbrown@HUSC9.HARVARD.EDU>
- Subject: keeping filemaker pro and scriptable text editor hidden in the
- back
-
- Can anyone out there tell me how to keep Filemaker Pro and the scriptable
- text editor in the background?
-
- I use this:
-
- tell application "finder"
- set visible of process "filemaker pro" to false
- end tell
-
- to hide them, but everytime I use the tell application, it pops into the
- foreground, and it is pretty annoying, and starts becoming very
- inefficient when you have to call a handler to hide the thing everytime
- you access something in the database...
-
- does anyone know how to get it in the background and keep it there?
- The same goes with the scriptable text editor.
-
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphins Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Thu, 18 Aug 1994 16:02:21 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: keeping filemaker pro and scriptable text editor hidden in the
- In-Reply-To: <no.id> from "anthony brown" at Aug 18, 94 03:42:05 pm
-
- --Anthony Brown wrote:
- >
- >Can anyone out there tell me how to keep Filemaker Pro and the scriptable
- >text editor in the background?
- >
- >I use this:
- >
- >tell application "finder"
- >set visible of process "filemaker pro" to false
- >end tell
- >
- >to hide them, but everytime I use the tell application, it pops into the
- >foreground, and it is pretty annoying, and starts becoming very
- >inefficient when you have to call a handler to hide the thing everytime
- >you access something in the database...
-
- Are you sure you don't have an activate command inside the tell
- control statement when you try to work with FM Pro? If you do, this is
- what's makeing it visible. I've done stuff with it in the background
- before, so I know it can be done.
-
- >does anyone know how to get it in the background and keep it there?
- >The same goes with the scriptable text editor.
-
- I don't work with the Scriptable Text Editor (epsecially since it
- doesn't actually work with files of type TEXT) so I can't really help
- you with this one.
-
- -Hades
- =========================================================================
- Date: Thu, 18 Aug 1994 13:26:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AppleScript sucking
- In-Reply-To: <199408181748.KAA12374@mail.netcom.com>
-
- Whether or not AppleScript sucks, it's going to be on every single new
- Macintosh when 7.5 ships. Whether you like it or not, most Mac scripters
- are going to be using AS. Why pay money for Frontier when they get a
- scripting system free? (that's a rhetorical question, BTW. I don't want
- 80 zillion responses, as I know that Frontier offers a lot that AS doesn't)
-
- But then again, I'm biased (and I hope that the bundled documentation for
- AS is really bad...) :)
-
- Derrick
- =========================================================================
- Date: Thu, 18 Aug 1994 13:54:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: AppleScript sucking
-
- At 13:26 8/18/94 -0700, Derrick Schneider wrote:
- >Whether or not AppleScript sucks, it's going to be on every single new
- >Macintosh when 7.5 ships. Whether you like it or not, most Mac scripters
- >are going to be using AS. Why pay money for Frontier when they get a
- >scripting system free? (that's a rhetorical question, BTW. I don't want
- >80 zillion responses, as I know that Frontier offers a lot that AS doesn't)
-
- Well, I don't mean to denigrate frontier, since I have not much experience
- with it, but at the risk of pissing off Frontier fans, here goes:
-
- I've used Frontier. I see AS as having the following advantages over Frontier:
- A) Graphical interface (FaceSpan)
- B) Ease of use and learning
- C) Simplicity
- D) context-sensitive formatting (different colors/styles for fonts of scripts)
- E) Delocalization -- you don't have everything in one huge file (Oh, please
- don't get corrupted root of mine ... )
- Now, obviously, I haven't used Frontier much. Actually, I haven't used it
- *at all* for anything useful -- I'm in the vague browsing stage. So what
- does it have that AS 1.1 with FaceSpan doesn't?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Thu, 18 Aug 1994 17:41:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <anbrown@HUSC9.HARVARD.EDU>
- Subject: what is frontmost gazer for?
-
- What is it for anyways? I have seen no documentation in my scripters kit...
- It's a file that just sits there and does nothing... is it a debugger of
- some sort?
-
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphins Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Thu, 18 Aug 1994 14:49:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Maximum length of script
-
- I'm using the Script Editor to write a rather large script and it is giving me
- a message that I have reached the maximum length of the script. Copying the
- script to Word gives me a count of 30001 characters.
-
- Is this a limitation of AppleScript or the Script Editor? If it is the Script
- Editor, does ScriptWizard allow longer scripts and is there a limit to the
- length of an AppleScript script.
-
- Thanks,
-
- Greg Francis
- =========================================================================
- Date: Thu, 18 Aug 1994 17:58:17 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <ANBROWN@HUSC.BITNET>
- Subject: Any debugger/code optimizers out there for applescript?
-
- Subject Line says all.
-
- Anthony
-
- *********************************************************************
- * *
- * Anthony Brown, Macintosh Programming Intern, Harvard Universtiy *
- * *
- * "Classic Rock Music Stations, The 70's are calling, *
- * They want their 8 - Tracks back!" *
- * *
- * Dolphins Rule!! Undefeated 17 - 0 The Perfect Team 1972-73 *
- * *
- *********************************************************************
- =========================================================================
- Date: Fri, 19 Aug 1994 10:01:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: HyperTalk/AppleScript communication
-
- Frank Lowney <flowney@LIBRIS.PUBLIC.LIB.GA.US> writes:
-
- >on mouseUp
- > global response
- > tell application "HyperCard"
- > copy response to card field "testF"
- > end tell
- >end mouseUp
-
- Two things:
-
- 1) HyperTalk and AppleScript are quite separate languages. In particular,
- they can't share variables directly. However, HyperCard makes all its objects
- accessible to AppleScript, you just have to use the right object class when
- referring to them, eg "variable" for a HyperTalk variable. You should see all
- the object types listed if you open HyperCard's dictionary in the AppleScript
- Script Editor.
-
- 2) The 'tell application "HyperCard"' bit is redundant. HyperCard is the
- default target, since that's the application that's running the script.
-
- Try this AppleScript script instead:
-
- on mouseUp
- copy variable "response" to card field "Test"
- end mouseUp
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Fri, 19 Aug 1994 10:07:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Re> Eudora 1.4.3 auto-sorting?
-
- Roy Roper <r-roper@UIUC.EDU> writes:
-
- >There is an aoce listserv in operation from the University of Michigan.
- >Some of these issues are also being discussed there.
- >
- > ------ From: Macintosh Scripting Systems, Wed, Aug 17, 1994 ------
- >
- >I need a way to automatically sort my different [Eudora] mailboxes by date.
- >Is it possible to do this with AppleScript?
-
- I don't see what Eudora has to do with AOCE. Until some connection becomes
- obvious, please keep discussion of Eudora scripting in the MACSCRPT list, and
- out of the AOCE one!
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 18 Aug 1994 15:28:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: AppleScript sucking
-
- I am sure that other Frontier users will pipe up, but here are my comments.
- I will say that I use BOTH AS and Frontier for my scripting needs since
- each has tools the other doesn't though I spend more time in Frontier.
-
-
- >I've used Frontier. I see AS as having the following advantages over Frontier:
- >A) Graphical interface (FaceSpan)
- >
- True, though FaceSpan works just fine in conjuction with Frontier
- it simply isn't bundled.
-
-
- >B) Ease of use and learning
- >C) Simplicity
- >
- That's relative. I don't think that one could prove that AS is
- easier than Frontier, or vice versa.
-
-
- >D) context-sensitive formatting (different colors/styles for fonts of scripts)
- >
- True. HOWEVER, on the other hand Frontier's script editor is
- outline based meaning that there is TEXT FOLDING which is GREAT for working
- with large procedures!
-
-
- >E) Delocalization -- you don't have everything in one huge file (Oh, please
- > don't get corrupted root of mine ... )
- >
- It's a tradeoff.
-
- The centralization of data storage for Frontier (ie. the object
- database) is one of its BEST features IMHO as it gives me a single DB for
- storing all sorts of scripting related things (scripts, VIEWABLE persistant
- store data, DOCUMENTATION (in full word processing or outline form), user
- interface elements (dialogs, menus, etc.), etc.). And being centralized
- also means that not only are related elements grouped, BUT I can search the
- DB to find things w/o worrying about where on my HD I put them!
-
-
- >So what does it have that AS 1.1 with FaceSpan doesn't?
- >
- Two other features of Frontier that I could not live w/o...
-
- 1) MenuSharing. This is a way for me to add my own menus to MS aware
- applications (which is pretty much all scriptable applications) so that I
- can put my own commands into their menubar. It was the impetus for OSA
- Menu, but it is MUCH more flexible and cool...
-
- 2) Debugger!! Just think of being able to single step through a script,
- examining (and editing!) the values of variables as you went. For me as
- an application developer this is the BEST tool for writing AE support into
- an application since it lets me see what is going on!
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Thu, 18 Aug 1994 17:06:07 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AppleScript sucking
- In-Reply-To: <199408182230.PAA02573@mail2.netcom.com>
-
- My use with Frontier was primarily with Frontier 1.0 when I did BMUG's
- disk catalog. Leonard's right: debugging scripts and folding up
- well-tested procedures (the disk catalog scripts were humungous (sp?))
- was a godsend. Nowadays, I might choose to use AS just because I'm more
- up on it then the new versions of Frontier, but I think both offer the
- capability I'd need. In addition, we couldn't have lived without the
- persistent storage (which, though possible in AS, is kind of a pain,
- unless you've got ScriptBase) that the root offers.
-
- Indeed, ease of learning is relative. I don't think programmers would
- have any trouble with Frontier, but I think AS is more appealing to the
- beginning scripter.
-
- My humble opinion,
-
- Derrick
- =========================================================================
- Date: Thu, 18 Aug 1994 20:09:42 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: JeffBB@AOL.COM
- Subject: Timer save
-
- I have a stay-open timer script that runs certain other scripts on certain
- days of the week at certain hours. The script file returns a value "Done0815"
- that is a property variable (StocksDone) in the main timer, so it doesn't run
- itself over and over.
- Problem is, if the Mac crashes and is restarted the same day, the
- "Done0815" property value is erased and all of that day's routines up to that
- minute are repeated.
- Question: Without quitting and reopening the alarm program, how can I get
- the alarm program to save itself, thereby saving its "Done0815" value in that
- particular property?
- I will be glad to share the alarm system script with anyone interested. It
- has run withut pause for two weeks now on an unattended Mac ... producing
- daily TV pages and stocks pages for two daily newspapers.
- Jeff Beebe / Gannett
- =========================================================================
- Date: Thu, 18 Aug 1994 17:10:33 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: what is frontmost gazer for?
- In-Reply-To: <199408182145.OAA26441@mail2.netcom.com>
-
- Haven't used Frontmost at all (except in its very early incarnations.
- special bonus prize for anyone who can give all the names its gone
- through), but I would guess that this is to allow people without
- Frontmost (the full thing) to view Frontmost applications.
-
- Derrick
- =========================================================================
- Date: Fri, 19 Aug 1994 12:12:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: creation of a MacScripting newsgroup
-
- Craig Richmond <craig@ECEL.UWA.EDU.AU> writes:
-
- >When Applescript first came out, it was so special interest that a
- >newsgroup would not have been warranted. With 800 people on the list, it
- >is perhaps time to create a newsgroup and do our best to spread the word to
- >the rest of the macintosh community.
-
- My last message was sent to just 399 participants (and the number seems to be
- slowly declining :-O), but I think it would make sense to set up a newsgroup
- anyway. I believe it should be called something like comp.sys.mac.scripting.
- I furthermore believe that it should subsume the existing
- comp.sys.mac.hypercard group, since there will be a lot of overlap in their
- subject area.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 18 Aug 1994 17:16:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Maximum length of script
- In-Reply-To: <199408182153.OAA27266@mail2.netcom.com>
-
- On Thu, 18 Aug 1994, Greg Francis wrote:
-
- > I'm using the Script Editor to write a rather large script and it is giving me
- > a message that I have reached the maximum length of the script. Copying the
- > script to Word gives me a count of 30001 characters.
-
- Script Editor won't do more than 32K. The difference might be header
- information.
-
- Derrick
- =========================================================================
- Date: Thu, 18 Aug 1994 17:35:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matt Stevens <matt@TRIBE.TRIBE.COM>
- Subject: Controlling Control Panels
-
- Has anyone had any success in controlling either the network control panel
- and/or MacTCP? Specifically, switching the connection method that's
- currently selected to another (ie. LocalTalk to EtherTalk, etc.).
- --
- matt
-
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: ::
- :: Matt Stevens email: matt@tribe.com ::
- :: Online Information Technician phone: 510.814.3980 ::
- :: Tribe Computer Works fax: 510.814.3980 ::
- :: <a href="http://www.tribe.com/HTML/thetribe/matt.html">Matt's Home!</a> ::
- :: ::
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- =========================================================================
- Date: Fri, 19 Aug 1994 00:41:52 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: Re: AppleScript sucking
-
- Leonard Rosenthal <leonardr@netcom.com> writes:
-
-
- >I am sure that other Frontier users will pipe up, but here are my comments.
- >I will say that I use BOTH AS and Frontier for my scripting needs since
- >each has tools the other doesn't though I spend more time in Frontier.
- >
- >
- >>I've used Frontier. I see AS as having the following advantages over
- Frontier:
- >>A) Graphical interface (FaceSpan)
- >>
- > True, though FaceSpan works just fine in conjuction with Frontier
- >it simply isn't bundled.
- >
- Wow, I had thought you couldn't use frontier either.. But, now that I think
- about it, I bet using Frontier with FaceSpam is about is fun/easy as
- scripting Frontier from the AppleScript Script editor while it's still set to
- "AppleScript" dialect... Am I right?
-
- [snip - for the same reason I stopped reading c.s.*.advocacy groups]
-
- >>So what does it have that AS 1.1 with FaceSpan doesn't?
- >>
- > Two other features of Frontier that I could not live w/o...
- >
- >1) MenuSharing. This is a way for me to add my own menus to MS aware
- >applications (which is pretty much all scriptable applications) so that I
- >can put my own commands into their menubar. It was the impetus for OSA
- >Menu, but it is MUCH more flexible and cool...
- >
- >2) Debugger!! Just think of being able to single step through a script,
- >examining (and editing!) the values of variables as you went. For me as
- >an application developer this is the BEST tool for writing AE support into
- >an application since it lets me see what is going on!
- >
- Two questions:
- First, are there any plans to extend OSAMenu to be more flexible (a la Menu
- Sharing, as you say)?
- Second, would the debugging gap close if I were to switch to a 3rd party
- script editor? Without commercializing, can someone point me at one if this
- is the case? =)
-
- Regards, and to each his own ;-)
- Jay Hebert
- jayh@laison.w8hd.org
-
-
- --
-
- ==========================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Thu, 18 Aug 1994 23:37:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Clark R. Wilkins" <clarkw@SAM.NEOSOFT.COM>
- Subject: Re: Second edition of Tao book
-
- Does anyone know if the second edition is a real re-write, or just a
- repackaging with the new software? I have worked through the first eight
- chapters of the first edition and found several bugs, structural errors,
- and plain misconceptions that made me pretty disappointed in the text. It
- seems to me that someone who did not have a pretty good grounding in basic
- programming would be totally confused by the errata in the book. I have
- mediocre skills which enabed me to circumvent the errors, but I did not
- appreciate having to debug a book that cost me over $25.
-
- Clark R. Wilkins <clarkw@sam.neosoft.com>
- -My words are responsible for themselves-
- =========================================================================
- Date: Thu, 18 Aug 1994 22:39:31 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dan Wolfe <wolfeman@APPLE.COM>
- Subject: Re: Power Mac and Finder
-
- >>It might be a localization matter. However: here, the System version is
- >>7.1.2 on the Power Mac CD, but the Finder version is 7.1.4. Try doing a
- >>Finder Get Info command on the Finder icon in your system folder.
- >
- >That's exactyl what I did to get the finder version. Quite probably
- >>localization and very annoying. I'm was hoping for a scriptable finder to get
- >a >ahead start on developing an AppleScript to handle our Maciintosh Template
- >>installation.
-
- Confirmed to be a localization bug - annoying yes - but hard to find when
- 200 people are camped out on your shoulder watching every move. :-)
-
- Scriptable Finder is available only in System 7.5 or greater OR from APDA.
- Finder Scripting Extension is STILL necessary in 7.5 for finder scripting.
- :-(
-
- - Dan
-
- /========================================================================\
- | Dan Wolfe, Software Integration Engineer |
- | Custom Mac, AppleSoft Platforms |
- | Apple Computer, Inc | MS: 81-CM |
- | EMail: wolfeman@apple.com | 20525 Mariani Avenue |
- | FAX: 408/974-8866; TEL: 408/974-0830 | Cupertino, CA 95014 |
- |------------------------------------------------------------------------|
- | People don't run out of dreams, they just run out of time... |
- |------------------------------------------------------------------------|
- | Include# <Standard Disclaimer> : Speaking as myself here.... |
- \========================================================================/
- =========================================================================
- Date: Thu, 18 Aug 1994 22:57:23 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Maximum length of script
-
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- >
- >I'm using the Script Editor to write a rather large script and it is giving me
- >a message that I have reached the maximum length of the script. Copying the
- >script to Word gives me a count of 30001 characters.
- >
- >Is this a limitation of AppleScript or the Script Editor? If it is the Script
- >Editor, does ScriptWizard allow longer scripts and is there a limit to the
- >length of an AppleScript script.
-
- I wrote an MPW tool called RunScript that doesn't work with AS 1.1. It
- proved to be some kind of weird MPW/AS/Component Manager mess that couldn't
- be fixed, so I ditched the whole MPW tool idea and have rewritten it as
- ScriptServer, the OSA script compiler/decompiler. I'm preparing an alpha
- release of this, but my wife keeps wanting me to come to bed instead of
- staying up until 3 am, so it's taking some time. One of my work
- compatriots has also written some MPW stuff to do #includes in AppleScript
- for library code, so I'll be including those scripts too.
-
- You can thus use MPW to edit your arbitrarily large scripts and automate
- your build process too, simply by calling ScriptServer with some MPW
- scripts which use Ed Lai's SendAE tool. It works well.
-
- More will come as I get the time.
-
- Jon
- =========================================================================
- Date: Thu, 18 Aug 1994 23:02:16 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Power Mac and Finder
- In-Reply-To: <199408190541.WAA11174@mail2.netcom.com> from "Dan Wolfe" at Aug
- 18, 94 10:39:31 pm
-
- Dan Wolfe writes:
-
- > Scriptable Finder is available only in System 7.5 or greater OR from APDA.
- > Finder Scripting Extension is STILL necessary in 7.5 for finder scripting.
-
- Or from any dealer or mail order house selling the AppleScript 1.1
- package labelled "Includes Finder Scripting Software." You get both
- the book _Scripting the Finder_ and the Finder and Extension for about
- $140. The manuals alone cost $70 or so, so this isn't TOO bad if you
- don't mind a copy of FaceSpan too. :-)
-
- AND, this finder is drag-manager aware. THAT is way cool.
-
- ~ Kiran
- =========================================================================
- Date: Fri, 19 Aug 1994 02:10:35 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <ANBROWN@HUSC.BITNET>
- Subject: how to hardwire a password and then remove the code...
-
- I am writing a database for someone, and now he is starting to flake out,
- and I think that he may not pay me. My question is this....
-
- I would like to hardwire a password dialog asking for a password, using
- applescript, because that is the language that I Am using in this. The
- tricky part is that once the password has been entered, I do not want
- that to ever come up again...
-
- How can I do that...
-
- ex.
-
- as soon as the program is run, the password must be entered. Once it has
- been entered, it should never be asked again.
-
- I want to do this so that I can give him his software so that I can give
- him an incentive to pay me. And until he pays me, I will give him the
- password so that he can use it...
-
- Unless anyone has any better ideas that I can use on this guy, would this
- be the best option for me?
-
- I am open to any suggestions...
-
-
- I am thinking of using a scriptable text editor document with a password
- of my choice in it. If the file is not present, then ask for the word.
- If the file is present, and the file contains the correct
- password(hardwired into the program of course), ignore the password prompt...
-
- Any help would be GREATLY appreciated...
-
- Anthony
-
- -- The Dolphins will win the Super Bowl this season!
-
- -- "If never I held you, my feelings would never show...
- -- It's time I started walking but
- -- Theres so much you'll never know!!"
- -- Paul Stanley circa 1976
- =========================================================================
- Date: Fri, 19 Aug 1994 01:01:01 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Timer save
-
- >I have a stay-open timer script that runs certain other scripts on certain
- >days of the week at certain hours. The script file returns a value "Done0815"
- >that is a property variable (StocksDone) in the main timer, so it doesn't run
- >itself over and over.
- > Problem is, if the Mac crashes and is restarted the same day, the
- >"Done0815" property value is erased and all of that day's routines up to that
- >minute are repeated.
- > Question: Without quitting and reopening the alarm program, how can I get
- >the alarm program to save itself, thereby saving its "Done0815" value in that
- >particular property?
-
- I'm not sure how to force the property to save. However, that's not
- actually the problem you're trying to solve, which is to save a small
- amount of data. A little bit of text written into a file (opened and
- closed each time) could do that for you.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 18 Aug 1994 22:31:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chuck McKinnon <mckinnon@KAIWAN.COM>
- Subject: MacPGP scripts
-
- Hi all,
- I've just finished my addition to the MacPGP <-> Eudora universe,
- and would like to find some hardy souls to try and break it!
- I have a MacPGP.lib (24K) and an Encrypt the out basket script
- (8K), Decrypt the in basket is not yet finished and not availible : (.
- But hey, it's a beta -- doesn't that mean it's supposed to be
- incomplete! Now if it was version 1.0 and cost $300 it would have to be
- incomplete -- I think there are FTC laws saying so!
-
- -----BEGIN PLUG-----
- These scripts are the basis for a simple, non-intrusive interface
- for Eudora 1.4.3 and MacPGP 2.6ui. Place aliai of In & Out Basket in your
- menu utility, MacPGP.lib can go anywhere, (it asks where it is). The first
- time they are ran, they will ask some setup questions, and store that info
- for future uses.
- -----END PLUG-----
- Drop me a line for more info & I'll send you the package.
-
- Thanx,
-
-
- Chuck
-
- /*----------------------------------------------------------------------------*\
- \ Chuck McKinnon | ANAHEIM, CA | CSU Fullerton /
- / | | \
- \ mckinnon@kiawan.com | -- BE HAPPY -- | a|k|a /
- / CI$ 74260,1110 | | \
- \ | The Mouse doesn't | Cal State /
- / Give me the finger | like it when you're | Construction Zone \
- \ for PGP Public Key | not happy | ^^^^^^^^^^^^^^^^^ /
- / | | \
- \*----------------------------------------------------------------------------*/
- =========================================================================
- Date: Fri, 19 Aug 1994 05:05:19 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
- Subject: Re: creation of a MacScripting newsgroup
- In-Reply-To: <199408171623.AA18513@firefly.prairienet.org>
-
- Yes there should be an Applescript newsgroup. I don't care if the mailing
- list is maintained.
- -Terry
- ###
- =========================================================================
- Date: Fri, 19 Aug 1994 13:17:45 --100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stefania Castellani <Stefania.Castellani@XEROX.FR>
- Subject: Memory problems with a script
-
- Hi everybody,
-
- I am writing a script (in AS of course!)
- It is an application rather large, but until now I had no memory problems,
- NOW I have a problem:
-
- when I check the syntax of the script, the Script Editor is giving to me the
- message
-
- "Out of memory"
-
- and the only thing I am able to do is to save the script as a text,
- close the Script Editor, reopening it, and saving the script as an
- application............ :-( (Moreover it doesn't work all the times).
-
- Probably there is something very easy to do that I am not able to
- see at the moment... Is there anybody out there who can help me?
-
- Thanks a lot :-)
-
- Stefania
- =========================================================================
- Date: Fri, 19 Aug 1994 09:38:19 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: text processing engines
-
- I want to do some serious text processing--namely, scripts to do reference
- threaded digestification of mailing list mail. I'm considering BBEdit as
- the engine, but I wondered if anyone had other suggestions?
-
- (I assume that actually doing this *in the applet* would be a menory hog
- and very slow. Has anyone practical experience with just loading the text
- into a string and working on that? And how long is a string in AS anyway?
- No, it's not in the manual!)
-
- Since I might want to unparse mangled headers from certain pesky sites
- (<grin>) I need soemthing pretty darn powerful. Scriptable Text Editor
- doesn't count.
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Fri, 19 Aug 1994 09:38:53 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: creation of a MacScripting newsgroup
- In-Reply-To: <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" at Aug 19, 94 12:12:00 pm
-
- --Lawrence D'Oliveiro wrote:
- >
- >My last message was sent to just 399 participants (and the number seems to be
- >slowly declining :-O), but I think it would make sense to set up a newsgroup
- >anyway. I believe it should be called something like comp.sys.mac.scripting.
- >I furthermore believe that it should subsume the existing
- >comp.sys.mac.hypercard group, since there will be a lot of overlap in their
- >subject area.
-
- This was one of the reasons the csm.scripting group didn't get off
- the ground the first time. No one seemed to want to go to the
- csm.hypercard newsgroup and get their opinion on the move. We would not
- only have to convince them to change the name of their group, but to
- also allow for a more than doubling of the current traffic with
- non-hypercard related posts.
-
- -Hades
- =========================================================================
- Date: Fri, 19 Aug 1994 09:41:32 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: AppleScript sucking
-
- At 5:54 PM 8/18/94, Roy S. Rapoport wrote:
-
- > I've used Frontier. I see AS as having the following advantages [...]
- > D) context-sensitive formatting (different colors/styles for fonts of scripts)
-
- If Frontier doesn't have this, it's missing something really useful--useful
- to PEOPLE, not programmers. <grin> And it's gonna be people using
- AppleScript.
-
- I've caught several errors of "logic" by noticing that thigns I thought
- were application variables were being formatted as my variables. Makes
- debugging the text a lot easier IMO. Much nicer than the naming
- conventions I still use to keep identifiers straight.
-
- Now if only we had context-sensitive formatting in ALL written text....
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Fri, 19 Aug 1994 07:46:22 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roy Roper <r-roper@UIUC.EDU>
- Subject: Re> Re: Re> Eudora 1.4.3 auto-sorting?
-
- The note was about scripting in general, and not all scripting discussions
- are being held in this forum. Some may find other scripting discussions
- helpful as well.
-
- Thanks for your kind advice.
-
- ------ From: Macintosh Scripting Systems, Thu, Aug 18, 1994 ------
-
- Roy Roper <r-roper@UIUC.EDU> writes:
-
- >There is an aoce listserv in operation from the University of Michigan.
- >Some of these issues are also being discussed there.
- >
- > ------ From: Macintosh Scripting Systems, Wed, Aug 17, 1994 ------
- >
- >I need a way to automatically sort my different [Eudora] mailboxes by date.
- >Is it possible to do this with AppleScript?
-
- I don't see what Eudora has to do with AOCE. Until some connection becomes
- obvious, please keep discussion of Eudora scripting in the MACSCRPT list, and
- out of the AOCE one!
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Fri, 19 Aug 1994 09:34:30 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
- Subject: Re: Memory problems with a script
-
- >
- >when I check the syntax of the script, the Script Editor is giving to me the
- >message
- >
- > "Out of memory"
- >
-
- Script Editor is an application which tries to live within a memory
- partition like all other applications. If you find that partition too small
- then you need to make it larger. To do that select Sript Editor in the
- Finder and choose Get Info from the File menu. At the bottom right of the
- dialog that you'll probably see that 700K is the preferred size. Bump it up
- to a larger number. To help you determine an appropriate partition size try
- running Script Editor after opening the About This Macintosh item from the
- Apple menu in the Finder. This will show you how much of its partition
- Script Editor is using.
-
- -------------------------------------------------------------
- Steve Bryan Internet: sbryan@maroon.tc.umn.edu
- Sexton Software CompuServe: 76545,527
- Minneapolis, MN 55415 Fax: (612) 929-1799
- =========================================================================
- Date: Fri, 19 Aug 1994 08:12:57 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: how to hardwire a password and then remove the code...
-
- At 2:10 8/19/94 -0400, anthony brown wrote:
-
- >I would like to hardwire a password dialog asking for a password, using
- >applescript, because that is the language that I Am using in this. The
- >tricky part is that once the password has been entered, I do not want
- >that to ever come up again...
- >
- >How can I do that...
-
- In broad terms,
-
- set PrefFile to "MyPref"
- tell application "Finder"
- if (exists (path to Preferences & PrefFile)) then
- go on ...
- else
- ask for password
- end if
-
- >I am thinking of using a scriptable text editor document with a password
- >of my choice in it. If the file is not present, then ask for the word.
- >If the file is present, and the file contains the correct
- >password(hardwired into the program of course), ignore the password prompt...
-
- While you certainly can do whatever you want, I would be more inclined to
- go for an algorithm-based password, rather than a text-based password, if
- only so some sort of binary editor can't be used to coax the phrase out.
- Think about it this way:
-
- set MyMagicNumber to 17
- copy (get_password()) to MyPW
- copy (atoi(MyPW)) to MyPWInt -- convert MyPW to an integer
- if (MyPWInt mod MyMagicNumber) is 0 then
- -- This is right
- else
- -- This is wrong
- end if
-
- This is nice because all you need to change the password is to change the
- MyMagicNumber; using a prime number is probably a good thing;
-
- I could be a little more sophisticated, but I'd be close to violating my NDA ...
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Fri, 19 Aug 1994 11:09:54 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Memory problems with a script
-
- >when I check the syntax of the script, the Script Editor is giving to me the
- message
-
- Increase the memory partition of Script Editor.
-
- Danny Goodman
- =========================================================================
- Date: Fri, 19 Aug 1994 11:13:35 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Maximum length of script
-
- >Copying the script to Word gives me a count of 30001 characters.
- >
- >Is this a limitation of AppleScript or the Script Editor?
-
- This is a limitation of the Mac toolbox routines that the Script Editor uses
- for its text fields. The same 30,000 character limit afflicts HyperTalk
- scripts in HyperCard and numerous other products (TeachText). I don't recall
- if ScriptWizard uses a different field methodology (for > 30,000 characters),
- but the guys there will surely chime in here if appropriate.
-
- Danny Goodman
- =========================================================================
- Date: Fri, 19 Aug 1994 16:17:11 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: Re: ScriptWizard v. Script Editor
-
- Hi Roy,
-
- In Regards to your letter <"ScriptWizard v. Script Editor">:
- >
- > I've been playing around with a demo version of Script Wizard, trying to
- > see if I liked it enough to push for a purchase. It seems very cool,
- > except for two problems:
- >
- > A) It's slow -- opening up two AS compiled scripts (saved as apps), with a
- > total of 64K of code, took about 21 seconds longer than in Script Editor,
- > for example. SE took 26 seconds to start up and load both scripts in ; SW
- > took about 47 seconds; you might want to knock off half a second for
- > clicking the 'this is a demo' dialog box. Similarly, saving and compiling
- > times are also longer. Anybody know if there's a fix for this?
- >
- > B) It's jerky -- when it's slow, it's not consistently slow. It freezes
- > for a second, then releases, etc. It's not as smooth as SE...
-
- There is a workaround for this in the shipping version, but first
- a paragraph of explanation is due:
-
- The problem is mostly down to the text editing engine used in ScriptWizard
- (Word Solution Engine, from Datapak Software). WSE has many neat features
- but it is not quite as speedy as we'd hoped when faced with text that has
- lots and lots of style runs per line, like styled AppleScript text. WSE
- also bogs down a bit more than it should in emulation mode on PowerMacs.
- It depends on the Mac hardware you're running it on, but this is certainly
- a complaint we've had from some of our users. Accordingly we are giving
- these performance issues 110% attention in the next major release of SW;
- the next version uses a different text editing engine that also allows SW
- to run native on PowerMacs (was that an announcement....? hmmm).
-
- We built a workaround into ScriptWizard 1.0, by the way: if you turn off
- AppleScript Formatting (using the check box in the Formatting window) then
- compilation and text editing will be un-styled, but faster. This is
- useful on older Macs, and may be easier than turning off ATM (another
- cause of a slow-down, if ATM must build the fonts used for the styled
- script display).
-
- Hope this helps,
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Fri, 19 Aug 1994 08:19:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: Timer save
-
- At 20:09 8/18/94 -0400, JeffBB@AOL.COM wrote:
- > Question: Without quitting and reopening the alarm program, how can I get
- >the alarm program to save itself, thereby saving its "Done0815" value in that
- >particular property?
-
- Now that it's somewhat easy to get into files, why not use a preferences file?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Fri, 19 Aug 1994 08:30:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: Maximum length of script
-
- At 11:13 8/19/94 -0400, Danny Goodman wrote:
- >This is a limitation of the Mac toolbox routines that the Script Editor uses
- >for its text fields. The same 30,000 character limit afflicts HyperTalk
- >scripts in HyperCard and numerous other products (TeachText). I don't recall
- >if ScriptWizard uses a different field methodology (for > 30,000 characters),
- >but the guys there will surely chime in here if appropriate.
-
- I just opened a 67K file in ScriptWizard. Actually, it opened rather
- quickly, as text (which confirms Paul's earlier point).
-
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Fri, 19 Aug 1994 08:32:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: ScriptWizard v. Script Editor
-
- At 16:17 8/19/94 +0000, Paul G Smith wrote:
-
- >The problem is mostly down to the text editing engine used in ScriptWizard
- >(Word Solution Engine, from Datapak Software). WSE has many neat features
- >but it is not quite as speedy as we'd hoped when faced with text that has
- >lots and lots of style runs per line, like styled AppleScript text. WSE
- >also bogs down a bit more than it should in emulation mode on PowerMacs.
- >It depends on the Mac hardware you're running it on, but this is certainly
- >a complaint we've had from some of our users. Accordingly we are giving
- >these performance issues 110% attention in the next major release of SW;
- >the next version uses a different text editing engine that also allows SW
- >to run native on PowerMacs (was that an announcement....? hmmm).
- >
- >We built a workaround into ScriptWizard 1.0, by the way: if you turn off
- >AppleScript Formatting (using the check box in the Formatting window) then
- >compilation and text editing will be un-styled, but faster. This is
- >useful on older Macs, and may be easier than turning off ATM (another
- >cause of a slow-down, if ATM must build the fonts used for the styled
- >script display).
-
- The only problem is that I REALLY REALLY like the AppleScript formatting;
- it's not something I'd trade off for speed.
-
- Currently this seems to be pretty much the only serious flaw I've found
- with ScriptWizard (aside from the fact it's a Mac product :) ). When's the
- next major release?
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Fri, 19 Aug 1994 08:33:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
- Subject: Re: FaceSpan -- Wait, Please
-
- At 15:25 8/18/94 -0400, anthony brown wrote:
- >Well, something that I do that is kindof like a cheat is to make the
- >window modal, and then the whole program will wait until you tell theat
- >window to close. Be sure to set the autoclose property of the window to
- >true that way as soon as you press the button, the window will close...
-
- Yeah -- I forgot about window types (I've been a bad programmer -- I just
- browsed through the book, rather than reading it), so I was setting it up
- as a document window ...
-
- -roy, who thinks FaceSpan is so cool, he might not be cool enough to use it
-
-
- Roy S. Rapoport rsr@berksys.com
- 2095 Rose St Berkeley CA 94709
- =========================================================================
- Date: Fri, 19 Aug 1994 11:00:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: creation of a MacScripting newsgroup
- In-Reply-To: Your message of "Fri, 19 Aug 94 09:38:53 EDT"
-
- >--Lawrence D'Oliveiro wrote:
- >>
- >>My last message was sent to just 399 participants (and the number seems to be
- >>slowly declining :-O), but I think it would make sense to set up a newsgroup
- >>anyway. I believe it should be called something like comp.sys.mac.scripting.
- >>I furthermore believe that it should subsume the existing
- >>comp.sys.mac.hypercard group, since there will be a lot of overlap in their
- >>subject area.
- >
- >--Brian Hughes replied:
- >
- > This was one of the reasons the csm.scripting group didn't get off
- >the ground the first time. No one seemed to want to go to the
- >csm.hypercard newsgroup and get their opinion on the move. We would not
- >only have to convince them to change the name of their group, but to
- >also allow for a more than doubling of the current traffic with
- >non-hypercard related posts.
-
- Odd, I thought we weren't going to talk about this yet. :-)
-
- Let me just interject a dose of reality into this thread. Go read the messages
- in the comp.sys.mac.programmer relating to their attempts to sub-divide and
- name the smaller groups. Then read what the Usenet Newsgroup Creation
- Companion has to say about efforts to change a group name/direction instead of
- creating a new one. The simplest (perhaps, sanest?) way to do this--if we do
- it at all--is to create a new group. An probably one that does not have
- programming in it's name.
-
- And Lawrence, where did you get that 399 number? A rev macscrpt just show 779
- members (which is down from 780-something since the last time I checked). Or
- did I misunderstand?
-
- pf
- =========================================================================
- Date: Fri, 19 Aug 1994 12:15:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andrew J. Kass" <delphi@MEDIA.MIT.EDU>
- Subject: How can I see events?
-
- Is there an easy way to see what events are being passed and the replies?
- The reason I need to know is that I am scanning in multiple pages using
- scriptable scanning software. After scanning, I save each page. When I send
- the save event, the software writes the file, then the script sits around for
- about 20 seconds, spinning the cursor, apparantly doing nothing! I would like to
- see exactly what/when the appleevents are being passed and the replies so I can
- figure out what the delay is. Is this possible?
-
- Thanks!
-
- Andrew
-
- Andrew Kass
- Library 2000
- MIT Lab for Computer Science
- delphi@lcs.mit.edu
- =========================================================================
- Date: Fri, 19 Aug 1994 12:17:26 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Wanted: CTB osax
-
- This request may have been made before, but...
-
- I'd really like to find an osax that would enable i/o via the CTB. Anyone
- working on one of those?
-
- This is for a potential shareware product that supports data transfer
- between the Newton and mac/Applescript. I've got a good start on the newton
- side, but really want to avoid learning all about the CTB.
-
- There is additional functionality that I'm looking for as well (in the next
- post)
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 19 Aug 1994 12:19:15 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Any way to "compile" a string
-
- This request may have been made before, but...
-
- I've got a string
-
- "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
-
- I'd like to call a fn and get back a real applescript record:
-
- {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
-
- Any takers?
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 19 Aug 1994 09:26:40 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul Farrah <paul_farrah1@QM.CLARIS.COM>
- Subject: Re: Any way to "compile" a s
-
- Reply to: RE>Any way to "compile" a stri
- To convert your "record string" to a record, try this:
-
- run script "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
- -- returns the record {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
-
- This requires Apple's Run Script osax.
-
- -Paul
-
- --------------------------------------
- From: John Schettino <js12@GTE.COM>
- Subject: Any way to "compile" a string
- X-To: Macintosh Scripting Systems
- <MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu>
- To: Multiple recipients of list MACSCRPT
- <MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu>
-
- This request may have been made before, but...
-
- I've got a string
-
- "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
-
- I'd like to call a fn and get back a real applescript record:
-
- {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
-
- Any takers?
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 19 Aug 1994 09:47:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: text processing engines
-
- >I want to do some serious text processing--namely, scripts to do reference
- >threaded digestification of mailing list mail. I'm considering BBEdit as
- >the engine, but I wondered if anyone had other suggestions?
- >
- BBEdit will work just fine. Also, Frontier has some wonderful
- tools for doing text manipulation/munging that I used to write a complete
- language parser for a particular project (I think a small version of it
- even ships with our SITcomm install file ;).
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Fri, 19 Aug 1994 09:46:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: AppleScript sucking
-
- >> Two other features of Frontier that I could not live w/o...
- >>
- >>1) MenuSharing. This is a way for me to add my own menus to MS aware
- >>applications (which is pretty much all scriptable applications) so that I
- >>can put my own commands into their menubar. It was the impetus for OSA
- >>Menu, but it is MUCH more flexible and cool...
- >>
- >>2) Debugger!! Just think of being able to single step through a script,
- >>examining (and editing!) the values of variables as you went. For me as
- >>an application developer this is the BEST tool for writing AE support into
- >>an application since it lets me see what is going on!
- >>
- >Two questions:
- >First, are there any plans to extend OSAMenu to be more flexible (a la Menu
- >Sharing, as you say)?
- >
- Plans yes - time frame, no. Right now I am VERY swamped with a
- number of "real" projects (like the new StuffIt) and so OSA Menu doesn't
- get any attention. I hope to get back to it soon as there are a number of
- interesting directions that I want to take it....
-
-
- >Second, would the debugging gap close if I were to switch to a 3rd party
- >script editor? Without commercializing, can someone point me at one if this
- >is the case? =)
- >
- It would close, but it can NOT approach Frontier in that UserTalk
- (Frontier's language) was designed with debugging as a high priority while
- AS was not. As such, the 3rd party editors each use a "hack" to get
- debugging and so things don't always work right that way.
-
-
- LDR
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Fri, 19 Aug 1994 09:55:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Second edition of Tao book
- In-Reply-To: <199408190440.VAA11601@netcom11.netcom.com>
-
- On Thu, 18 Aug 1994, Clark R. Wilkins wrote:
-
- > Does anyone know if the second edition is a real re-write, or just a
- > repackaging with the new software? I have worked through the first eight
- > chapters of the first edition and found several bugs, structural errors,
- > and plain misconceptions that made me pretty disappointed in the text. It
-
- A lot of the text has been rewritten to handle some of the (ahem) errors
- from version 1. Though the actual "exercises" are still the same,
- they've been picked over. We actually had technical editors this time
- (novel idea, n'est-ce pas?) who caught a lot of things. Plus I went
- through and corrected as much as I could.
-
- Sigh, can't please all the people all the time, I suppose.
-
- Derrick
- P.S. Order it direct from BMUG. That way it won't cost you as much!
- =========================================================================
- Date: Fri, 19 Aug 1994 11:42:50 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: How can I see events?
- In-Reply-To: Your message of "Fri, 19 Aug 94 12:15:58 EDT"
-
- Andrew,
-
- >Is there an easy way to see what events are being passed and the replies?
- >The reason I need to know is that I am scanning in multiple pages using
- >scriptable scanning software. After scanning, I save each page. When I send
- >the save event, the software writes the file, then the script sits around for
- >about 20 seconds, spinning the cursor, apparantly doing nothing! I would like
- >to
- >see exactly what/when the appleevents are being passed and the replies so I ca
- >n
- >figure out what the delay is. Is this possible?
-
- You might want to check out AE Tracker. It creates a log file of all the Apple
- events that are sent and received. You'll find it at
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/AETRACKER-3-0.HQX
-
- Hope that helps.
-
- pf
- =========================================================================
- Date: Fri, 19 Aug 1994 13:24:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: Re: AppleScript sucking
-
- My initial comments were in response to someone's equating scripting in
- general with AppleScript in particular. There are a lot more people doing
- AppleScript than Frontier, and Frontier is more expensive.
-
- I guess it comes down to what you want. If you want to go the inexpensive
- route, not have much functionality built in, wrestle with dozens of scripting
- additions and various incompatibilities, use AppleScript. Many of the
- available OSAXen's features are already present, de-bugged and documented in
- Frontier. If you have to get something done quickly and efficiently, and you
- want to spend your time thinking about the logic and flow of the script you
- want to write, rather then figuring out how to get the scripting environment
- to do what you want, use Frontier.
-
- Many of the points mentioned by others regarding the advantages of AS over
- Frontier have already been ably addressed by Leonard Rosenthol, but I have a
- few comments as well...
-
- As far as learning curve, Frontier includes an integrated scriptable document
- server that contains documentation for the buitin verbs. The format of the
- document pages provides for a description of the parameters, examples, notes,
- what it does, related verbs and what is returned. It is an invaluable
- consistent resource. There are scripts within Frontier to manage the document
- server and build outlines of the documented verbs.
-
- By pressing the control key while double clicking on the name of a verb, it
- is automatically looked up for you. From the document server, you can copy to
- the clipboard any of the different components of that verb's documentation.
- Heck, you could whip up a script that created an outline of all parameters of
- all the verbs having to do with dialogs.
-
- Frontier comes with dozens of indexed and documented sample scripts to
- demonstrate the syntax of the language and the use of verbs. Just unfold the
- name of the verb and voila, the name of the sample scripts that use it. Hold
- down the command key and double click on the name of the script and voila,
- that script's window is opened.
-
- There is also an outline form of the manual's index, but instead of
- referencing the book, it references the object database.
-
- Delocalization - Information can be stored at runtime in variables or can be
- permanently stored in the object database, or they can be written out to a
- file as text, or stored in the object database, that piece of database
- exported to a file, and then deleted from the database, to be available again
- just by opening it. Wow! What choices.
-
- Frontier's debugger allows stepping, editing and the setting of break points.
- The debugging info for each execution scope is stored in a different table,
- making it easy to debug.
-
- Frontier's scriptable integrated word processor has a ruler, 4 kinds of tabs,
- left/right/centre/justified text, and find and replace.
-
- Frontier's integrated scriptable outline processor is just so incredibly
- useful for so many things that I don't know where to begin, so I won't.
-
- Frontier has the ability to remove the source code from the tokenized code.
- This can be quite useful if you are selling scripts, or don't want the
- curious mucking about. I don't know if AppleScript can do this as well.
-
- Frontier's object database allows for the customization of your programming
- environment and the ability to easily manage and organize large amounts of
- info.
- Want to create a new global constant? Just add it to the table that
- contains all the global constants.
- Want a shared menu in to have different items on it depending on the time
- of day or day of the week? Just add a script to the agents (cron-like
- background running scripts) table that adds or deletes or re-writes the code
- for the menubar for that app in the object database.
- Want to have computed values in a menubar? Just make the name of the item
- the formula preceeded by =
-
- I prefer UserTalk to Apple's scripting language. It is more terse and formal
- looking, but I find that easier to program and easier to keep organized. I
- tend to nest several calculations and procedure calls within one line, and
- have one more than one occaison used up the 127 characters/line limit. It
- seems that I can get more done with fewer keystrokes with Frontier.
-
- The fact that AppleScript will be bundled with System 7.5 is a good idea.
- With more people scripting (or running scripts) more apps will be scriptable
- which is also good.
-
- David
-
- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
- | Everything is very very deeply \
- | I N T E R T W I N G L E D \
- | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
- =========================================================================
- Date: Fri, 19 Aug 1994 13:24:54 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Any way to "compile" a s
-
- > Reply to: RE>Any way to "compile" a stri
- >To convert your "record string" to a record, try this:
- >
- >run script "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
- >-- returns the record {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
- >
- >This requires Apple's Run Script osax.
- >
-
- It only gives me an error... does this actually work for anyone?
-
- If only that were true! I've got the lateste AppleScript (1.1) and Run
- Script (1.1) osaxen, and it only accepts script files:
-
- System Object Suite:
- Copyright =AE 1993 Apple Computer, Inc. All rights reserved.
-
- run script: Run a specified script or script file.
- run script script -- script or script file to execute
- [with parameters list] -- list of parameters
- [in string] -- scripting component to use, default is
- current scripting component
- Result: anything -- result of running script
-
- Am I missing something? Getinfo on run script says:
- Run Script
- AppleScript (tm) 1.1
- Created/Modified Wed, Dec 8, 1993
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 19 Aug 1994 10:35:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Wanted: CTB osax
-
- >I'd really like to find an osax that would enable i/o via the CTB. Anyone
- >working on one of those?
- >
- There are no OSAXen for the CTB, since most people who want to
- script communications are doing so with scriptable comm programs such as
- SITcomm. If you MUST use externals instead of an application, you might
- want to look into the XCMDRunner OSAX along with the old CTB XCMD's.
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Fri, 19 Aug 1994 10:37:47 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: How can I see events?
-
- "Andrew J. Kass" writes
-
- >Is there an easy way to see what events are being passed and the replies?
- >The reason I need to know is that I am scanning in multiple pages using
- >scriptable scanning software. After scanning, I save each page. When I send
- >the save event, the software writes the file, then the script sits around for
- >about 20 seconds, spinning the cursor, apparantly doing nothing! I would like
- >>to
- >see exactly what/when the appleevents are being passed and the replies so I can
- >figure out what the delay is. Is this possible?
-
- If you have access to Apple's Developer CD series, check out Chris Huan's
- AETracker:
-
- Dev.CD Aug 94:Tool Chest:OS/Toolbox:Apple Events:AE Tools:AETracker 3.0:
-
- This is shareware (but *don't* pay the $5.00...Chris doesn't want the money
- and no longer cashes the checks).
-
- If you don't have the developer CDs, you could look around ftp.apple.com.
-
- Or...I can mail you a copy (but I can't post to gaea).
-
- This is a Control Panel with an INIT. When activated, it writes a log file
- of AE Manager calls. You have lots of control over what it logs, from
- "every d**n thing" in all processes down to a particular call in a single
- process.
-
- -----------------
- Fred: I don't actually know that this thing couldn't go on gaea...it is
- Chris' shareware, and I forget whether an Apple copyright appears on it or
- not. One could always ask Chris.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 19 Aug 1994 10:47:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Any way to "compile" a s
-
- >> Reply to: RE>Any way to "compile" a stri
- >>To convert your "record string" to a record, try this:
- >>
- >>run script "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
- >>-- returns the record {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
- >>
- >>This requires Apple's Run Script osax.
- >>
- >
- >It only gives me an error... does this actually work for anyone?
- >
- >If only that were true! I've got the lateste AppleScript (1.1) and Run
- >Script (1.1) osaxen, and it only accepts script files:
- >
- >System Object Suite:
- >Copyright =AE 1993 Apple Computer, Inc. All rights reserved.
- >
- >run script: Run a specified script or script file.
- > run script script -- script or script file to execute
- > [with parameters list] -- list of parameters
- > [in string] -- scripting component to use, default is
- >current scripting component
- > Result: anything -- result of running script
- >
- >Am I missing something? Getinfo on run script says:
-
- "script or script file" means just that: a script (as text) or a script
- file (in Apple's definition thereof).
-
- Here's a working example:
-
- run script "display dialog \"Here I am\""
-
-
- ----------
- However, I have Run Script 1.1.1b1 (April 1994). Someone else will have to
- remember where I got that update ;-)
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 19 Aug 1994 14:04:27 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Any way to "compile" a s
-
- >However, I have Run Script 1.1.1b1 (April 1994). Someone else will have to
- >remember where I got that update ;-)
-
- Ah HA! That must be it... I bought the scripter's toolkit recently, and got
- the "old" 1.1. I wonder where y'all find the newer ones. I'll go netfishing
- and see what I can find.
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 19 Aug 1994 12:55:06 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript sucking
-
- At 13:24 8/19/94 -0500, David Boroditsky wrote:
- >Frontier has the ability to remove the source code from the tokenized code.
- >This can be quite useful if you are selling scripts, or don't want the
- >curious mucking about. I don't know if AppleScript can do this as well.
-
- Yes...AppleScript does provide this capability. Actually, once an
- AppleScript script is compiled and the window is closed, the source is
- gone. The script is decompiled later when the source is needed again. But
- the underlying software provides a flag that says "don't allow decompiling
- to source", and the Script Editor provides a way of setting that flag when
- saving a script.
-
- [And both Frontier and the AppleScript Script Editor allow the script
- writer to discard the only available copy of the source, which isn't a good
- thing for a script writer to do.]
-
- Thanks for the kind words!
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Fri, 19 Aug 1994 14:29:43 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Re: creation of a MacScripting newsgroup -Reply
-
- What are the advantages and disadv of a newsgroup as opposed to
- mailing list?
-
- Andy
- =========================================================================
- Date: Fri, 19 Aug 1994 16:25:30 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Mobilio, Dominick" <MOBILD@PRINCE.MM.WYETH.COM>
- Subject: Re: AppleScript/Frontier
-
- From: Mobilio, Dominick
- Date: Fri, Aug 19, 1994 4:25 PM
- Subject: Re: AppleScript/Frontier
- To: MacScripting
- From: Mobilio, Dominick on Fri, Aug 19, 1994 2:03 PM
- Subject: Re: AppleScript/Frontier
- To: MacScripting
-
- >From: David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
- >Subject: Re: creation of a MacScripting newsgroup
-
-
- >BTW, the amount of traffic there is in this mailing list having to do
- >with people trying to do things that are already built into Frontier
- > (and quite reliably I might add) is astounding, but alas I rant again.
-
-
- It is amazing that you can grasp the art of scripting but are astounded as to
- why people would be using AppleScript to do things that Frontier does.
- Considering your sophomoric characterization of AppleScript, perhaps I
- shouldn't be surprised. What IS astounding is that someone can't understand
- why people would use something that comes free with an operating system rather
- than something they need to purchase separately.
- =========================================================================
- Date: Fri, 19 Aug 1994 15:41:29 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: creation of a MacScripting newsgroup -Reply
- In-Reply-To: Your message of "Fri, 19 Aug 94 14:29:43 MDT"
-
- Andy asks....
- >What are the advantages and disadv of a newsgroup as opposed to
- >mailing list?
-
- The mailing list is
- small and cozy--most everyone posts questions and answers
- easy to create/maintain/moderate
- easy to keep up with--it comes right to your mailbox
- digestable
- less given to flame wars
- lower traffic/less irrelevant noise
- But it is also
- hard to find
- hard on people that don't like/can't afford lots of mail traffic
-
- A newsgroup is
- more widely available
- easier on the mailbox
- But it is also
- more prone to flame wars
- more likely to have lots of noise
- {may be} harder to digest
- harder to create
- a little more work--you have to have an account you can read news from
-
- I'm sure others can contribute to this list or put a different spin on the
- items I've listed (like the majority of humans--I'm biased). I think the
- primary rationale for making the change is that System 7.5
- will--theoretically--put AppleScript on more Macs. By converting the list to a
- newsgroup now, we increase the ease that people can find scripting
- information. And as the number of postings increase, we ease the burden on our
- mailboxes.
-
- Unfortunately, there is the potential for more irrelevant postings, more
- flammage, and more religious wars (oops, we're experiencing some of that right
- now, aren't we?). Some people have told me they think the quality of help will
- decrease; I'm not sure I believe that. I only know that it'll be harder to
- keep up with something that doesn't automatically land in my mailbox.
-
- pf
- =========================================================================
- Date: Fri, 19 Aug 1994 15:52:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: current poll count
-
- In case you are interested, with less than 100 polls returned, this is the way
- the polling stands.
-
-
- Create a newsgroup?
- 60 yes
- 28 no
- 4 don't care
-
- Retain the mailing list with gateways?
- 63 yes
- 21 no
- 6 don't care
-
-
- I've had to toss out some of the "ballots" since they didn't have a clear-cut
- yea or nay on both of the questions. If you haven't sent in a poll and you
- plan to, please don't modify it. Just answer yes or no and then add a comment
- if you like.
-
- Thanks to everyone who has participated.
-
- pf
- =========================================================================
- Date: Fri, 19 Aug 1994 14:10:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: current poll count
-
- Sorry, I don't have the poll form:
-
- Create a newsgroup?
- NO
-
- Retain the mailing list with gateways?
- [If we create a newsgroup?] Yes
- =========================================================================
- Date: Fri, 19 Aug 1994 18:41:49 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: creation of a MacScripting newsgroup -Reply
-
- At 4:41 PM 8/19/94, Fred Terry wrote:
-
- > By converting the list to a newsgroup now,
-
- Why not have BOTH?
-
- I just don't get it I guess.
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Fri, 19 Aug 1994 18:46:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Will Parker <willhoek@HALCYON.COM>
- Subject: Re: creation of a MacScripting newsgroup
-
- >
- >
- >Should I begin the process of creating a MacScripting newsgroup?
- >
- >__X_ Yes
- >
- >____ No
- >
- >
- >Should the mailing list be maintained and messages gatewayed to the newsgroup
- >and vice versa.
- >
- >__X_ Yes
- >
- >____ No
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Third rule of Tech Support - If you can't navigate a
- five-item, single level phone tree without becoming
- frustrated, you didn't need that computer anyway.
- -Willhoek@halcyon.com-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- =========================================================================
- Date: Fri, 19 Aug 1994 20:13:58 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Lachowsky <Jason_Lachowsky%tcm.mn.org@HARVUNXW.BITNET>
- Subject: Re(2): AppleScript as a network software installer/updater system
-
- I will reply to your message when I am back online.
- Thanks!
- -Jason Lachowsky
- =========================================================================
- Date: Fri, 19 Aug 1994 20:43:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dan Wolfe <wolfeman@APPLE.COM>
- Subject: Re: Power Mac and Finder
-
- Dan Wolfe writes:
-
- > Scriptable Finder is available only in System 7.5 or greater OR from APDA.
- > Finder Scripting Extension is STILL necessary in 7.5 for finder scripting.
-
- accck! In the clear light of day... make that starlight.... I realize that
- I need to clarify this comment.
-
- Finder Scripting Extension is included with System 7.5. You do not need to
- purchase it seperately. What I was trying to point out was that it hasn't
- been rolled into the Finder - yet. :-)
-
- (Yep that's right, we engineers dream a lot....)
-
- - Dan
-
- /========================================================================\
- | Dan Wolfe, Software Integration Engineer |
- | Custom Mac, AppleSoft Platforms |
- | Apple Computer, Inc | MS: 81-CM |
- | EMail: wolfeman@apple.com | 20525 Mariani Avenue |
- | FAX: 408/974-8866; TEL: 408/974-0830 | Cupertino, CA 95014 |
- |------------------------------------------------------------------------|
- | People don't run out of dreams, they just run out of time... |
- |------------------------------------------------------------------------|
- | Include# <Standard Disclaimer> : Speaking as myself here.... |
- \========================================================================/
- =========================================================================
- Date: Sat, 20 Aug 1994 00:55:37 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Eric W. Bates" <ericx@WIZARDZ.COM>
- Subject: Re: Controlling Control Panels
-
- >Date: Thu, 18 Aug 1994 17:35:46 -0800
- >From: Matt Stevens <matt@TRIBE.TRIBE.COM>
- >Subject: Controlling Control Panels
- >
- >Has anyone had any success in controlling either the network control panel
- >and/or MacTCP? Specifically, switching the connection method that's
- >currently selected to another (ie. LocalTalk to EtherTalk, etc.).
- >--
- >matt
- >
- I haven't tried either of those cdevs, but I have used QuickKeys to run
- quite a few cdevs including ARA.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ericx@wizardz.com Eric W. Bates
- Box 55
- Vineyard Haven, MA
- "Holy Mush, Batman!" -Robin, the Boy Wonder 02568-0055
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- =========================================================================
- Date: Sat, 20 Aug 1994 00:25:08 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: AETracker
-
- >Fred: I don't actually know that this thing couldn't go on gaea...it is
- >Chris' shareware, and I forget whether an Apple copyright appears on it or
- >not. One could always ask Chris.
-
- I know CK. I think it's safe to say that he doesn't give a damn about
- whether or not you put it on gaea. ;)
-
- As for watching all the events, The Script Editor in 1.1 provides an
- AETracker for events that scripts send. Type Command-E.
-
- Jon
- =========================================================================
- Date: Sat, 20 Aug 1994 00:25:11 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: AppleScript sucking
-
- I don't want to be part of a religious flame war, but I've never been one
- to keep my mouth shut and I'd hate to miss out on one that was happening
- without me. ;)
-
- Everyone probably knows my preference, but I think my favorite statement
- about Frontier is that if you liked THINKTANK and MORE, you'll love
- =46rontier. While I recognize the power of all of these products, there's
- something about outliners and tables and windows galore that turns me off.
- I also like english syntax as in AppleScript and HyperTalk. After 15 years
- of programming and 10 years of email, I'm beginning to learn how to type,
- so I'm not afraid of verbose programming. I use big long names in my c++
- code too. I just don't like putting periods all through them. Too much
- like Unix. ;)
-
- I also think the Frontier folks have to give the Apple folks some credit.
- They went out of their way to allow Frontier to interact. Consider how the
- two scripting systems can read and run each other's scripts. While the
- =46rontier folks were prompt in supporting the OSA scripting API, the
- AppleScript folks did it almost exclusively to provide Frontier a way into
- their scripting system. It would have been easier to make AppleScript not
- extensible this way. Once they did they this though, I think everyone
- realized that it was the right thing to do. Remember, OSA is part of
- AppleScript, so it provides a benefit for everyone, including Frontier
- users.
-
- OSA is also going to be part of OpenDoc. It will be the method used to
- control and describe parts. That means object model.
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> wrote:
- >At 13:24 8/19/94 -0500, David Boroditsky wrote:
- >>Frontier has the ability to remove the source code from the tokenized code=
- .
- >>This can be quite useful if you are selling scripts, or don't want the
- >>curious mucking about. I don't know if AppleScript can do this as well.
- >
- >Yes...AppleScript does provide this capability. Actually, once an
- >AppleScript script is compiled and the window is closed, the source is
- >gone. The script is decompiled later when the source is needed again. But
- >the underlying software provides a flag that says "don't allow decompiling
- >to source", and the Script Editor provides a way of setting that flag when
- >saving a script.
-
- Actually, AppleScript removes the instructions on how to recreate the
- script, making the script smaller and completely preventing access to the
- original script. You could probably still do some kind of disassembly, but
- you wouldn't have variable names and comments. You would have externally
- scoped names though. It's more than simply a switch.
-
- This is one of the reasons that AppleScripts stored in Hypercard are
- smaller than 30,000 characters, like their HyperTalk brethren.
- AppleScripts store the code and the source.
-
- I was actually thinking that this would be a good way to store data,
- including that guy's password. Use this script:
-
- property secretDataName : ""
-
- and store it read only. Then use this script to access it:
-
- set f to load script alias "Sylvester:Desktop Folder:foo"
- log f's foo
- set f's foo to "Bite me"
- log f's foo
- store script f in alias "Sylvester:Desktop Folder:foo" replacing yes
-
- Now you can read and write the value. Of course, this isn't encrypted.
- Here's the scpt resource in ASCII:
-
- =46asdUAS
- 1.101.10=0E=00=00=00=04=0F=9D=9D=9D=9C=00=01=00=02=01=9D=9D=00=00=01=9D=9C=
- =00=00=0E=00=01=00=00=0F=10=00=02=00=03=9D=9B=00=03=00=04=01=9D=9B=00=00=10=
- =00=03=00=01=9D=B8=0B=9D=B8=00=070=00=03foo=00=00=0C=00
- =04=00
- =00=07Bite me=00=02=00=00ascr=00=01=00=0C=99=DE=DE=82
-
- As you can see, the property name and value are present for all to see.
- I'm not positive, but I'm willing to bet that "Fasd" is the tag for a
- script. It's the same whether or not the script is read-only. "UAS
- 1.101.10" is the AppleScript internal version data. It's probably created
- version & modified version. Then there's some script data, the name of the
- script and it's value. Then there's the scripting component code and some
- trailer bytes "=99=DE=DE=82". In hex they look like $FADEDEAD.
-
- OK, so that's more detail than needed, but hey, it's my fingers and purely
- recycled electrons.
-
- Jon
- =========================================================================
- Date: Sat, 20 Aug 1994 08:05:32 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: creation of a MacScripting newsgroup
-
- > --Lawrence D'Oliveiro wrote:
- > >
- > >My last message was sent to just 399 participants (and the number seems to be
- > >slowly declining :-O), but I think it would make sense to set up a newsgroup
- > >anyway. I believe it should be called something like comp.sys.mac.scripting.
- > >I furthermore believe that it should subsume the existing
- > >comp.sys.mac.hypercard group, since there will be a lot of overlap in their
- > >subject area.
- >
- -- Hades responds:
- > This was one of the reasons the csm.scripting group didn't get off
- > the ground the first time. No one seemed to want to go to the
- > csm.hypercard newsgroup and get their opinion on the move. We would not
- > only have to convince them to change the name of their group, but to
- > also allow for a more than doubling of the current traffic with
- > non-hypercard related posts.
-
- Don't look now but Allegiant (parent to SuperCard) is in the process of
- forming c.s.m.supercard because they don't want to hang with the HC folks
- in c.s.m.h any longer. Opinions in c.s.m.h vary on this; some of us (me
- included) like reading everything in one place and so far, the SC posts
- aren't overwhelming. (You do have to put up with folks answering HC questions
- with "If you want to do that, just buy SuperCard.")
-
- Merging HC, AS, SC and whatever into c.s.m.scripting would create a very
- busy news group. Personally, I don't like the idea but I do see advantages
- also.
-
- But the HyperCarders wouldn't let you do it anyway :-) .
-
- I would like to see an AS news group and see this list maintained
- separately.
-
- Peter
- =========================================================================
- Date: Sat, 20 Aug 1994 11:33:37 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
- Subject: Re: Second edition of Tao book
- In-Reply-To: <199408191658.AA28780@firefly.prairienet.org>
-
- I thnk the new edition is Great!! I ordered two copies in fact. I got mine
- straight from hayden books. They overnighted them whcih was much faster than
- BMUG's ordering. I wish they would do something about that. You're supposed
- to leave your visa number on a recording and wait weeks for the product
- unless you pay $25 extra for rush shipping.
- =========================================================================
- Date: Sat, 20 Aug 1994 14:16:08 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: osaxen database
-
- I've pulled a copy of a small osaxen database from AOL. It isn't complete,
- but does look like a good start. It's in FileMaker format. You'll find it
- in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/BBOsaxenDB.sit.hqx
-
- Enjoy.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Sat, 20 Aug 1994 13:50:08 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: MacPGP scripts
-
- >Hi all,
- > I've just finished my addition to the MacPGP <-> Eudora universe,
- >and would like to find some hardy souls to try and break it!
- > I have a MacPGP.lib (24K) and an Encrypt the out basket script
- >(8K), Decrypt the in basket is not yet finished and not availible : (.
-
-
- I have already written some PGP <--> Eudora scripts that I have been using
- myself. I'd be interested in trying out your scripts and possibly sharing
- mine.
-
- -Dave
-
- -----------------------------------------------------------------------
- David Ray Dream Designs Music Composition
- daver@netcom.com PO Box 5631 Interactive Multimedia
- 510-527-9010 Berkeley CA 94705 Virtual Worlds
- =========================================================================
- Date: Sat, 20 Aug 1994 13:59:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: Wanted: CTB osax
-
- I seriously considered adding a series of CTB commands along the lines of
- the File IO commands to Script Tools 1.4. I finally decided not to because
- of the existance of programs like SITcomm and others which provide
- scriptable access to the CTB through an application.
-
- However, I can see that OSAX support for the CTB has some advantages. Your
- script can perform communications with a smaller memory footprint, and you
- can better conceal the communications from the user. Also, for highly
- controlled communications, there may be a performance improvement (no
- context switches, etc.).
-
- Its certainly feasible, the TCP OSAX has proven that.
-
- Maybe in Script Tools 1.5 ;-)
-
- -Mark
- =========================================================================
- Date: Sat, 20 Aug 1994 14:22:48 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: Wanted: CTB osax
-
- Here is my 'wish list' if anyone is going to write such as OSAX:
-
- - Should have capability of "wait for string" and "send string", like ZTerm
- and Microphone.
-
- - Should have capability of putting received data into a variable, like the
- TCP/IP OSAX can do. This allows you to write if/then statements about what
- to do depending on the data sent.
-
- -Dave
-
- -----------------------------------------------------------------------
- David Ray Dream Designs Music Composition
- daver@netcom.com PO Box 5631 Interactive Multimedia
- 510-527-9010 Berkeley CA 94705 Virtual Worlds
- =========================================================================
- Date: Sat, 20 Aug 1994 21:54:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Way to have background only script?
-
- I want to have a script application to be "faceless" i.e. not show up in
- the application menu. Is there a way to do this. How about a way for the
- script itself to do it using the scriptable Finder ?
-
- -Erik
- =========================================================================
- Date: Sun, 21 Aug 1994 10:56:03 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: [Q] How to upload a contribution to gaea
-
- Hi all,
-
- can I simply send a message to this address, containing the binhex code of
- the submission, or do I have to connect to gaea and manually upload it to
- the incoming folder?
-
- Thanks !
-
-
- Wagner Luiz Truppel
- WLT@MERCURIO.UC.PT
- =========================================================================
- Date: Sun, 21 Aug 1994 10:56:17 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
-
- Hi all,
-
- is it possible to test for a key being held down at launching time of a AS
- applet or droplet? I mean something like the HyperCard snippet
-
- if optionKey() is down then ...
-
- Thanks !
-
-
- Wagner Luiz Truppel
- WLT@MERCURIO.UC.PT
- =========================================================================
- Date: Sun, 21 Aug 1994 11:21:59 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Robin B. Lake" <rbl@HAL.EPBI.CWRU.EDU>
- Subject: Re: MACSCRPT Digest - 19 Aug 1994 to 20 Aug 1994
-
- Re:Scripting vs. Shell
-
- Although I was an early purchaser of Frontier and followed AppleScript
- as a very neat computer operating system concept, I never one got through
- the fuzzy, complex and (to me) arcane overburden on either Frontier or
- AppleScript.
-
- Yesterday I installed MachTen. A full BSD4.3 UNIX application that runs
- as an application on my System 7 Mac. Unlike A/UX (which I also have), it
- does NOT require re-booting the system.
-
- Why the enthusiasm? (1) The entire Mac file system appears as the MachTen
- file system; (2) I have the full power of the shell and C-shell to
- manipulate the Mac files; (3) I have the neat Unix utilities to modify
- the Mac files, such as grep, perl, awk, tr, etc.
-
- For example, it is SO much easier (for me) to enter a single line:
- $grep Creole *.eats
-
- than it is to script something in Frontier or AppleScript. AND you get
- real pipes for concatenating the actions of several tools:
- $grep Creole *.eats |head
-
- As a Unix grey-beard, I'm quite excited about this new (to me) application
- environment! No commercial, but info@tenon.com got me into this :=}}}
-
- Rob Lake
- Environmental Modeling Inc.
- rbl@hal.cwru.edu
- =========================================================================
- Date: Sun, 21 Aug 1994 16:21:12 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
- Subject: Alternative Script Editor needed, do script, maximum length
-
- Hi,
-
- The AppleScript project I'm working on at the moment has just run into a
- serious problem, it's reached the maximum length of the Script Editor. As I
- need to add more to it and can't remove any of the script I need an
- alternative Script Editor. At present I'm running Apple's Script Editor
- v1.1 along with AppleScript v1.1. I can't really afford anything commercial
- as I'm only 15 and have to pay for my Internet access. Therefore
- ScriptWizard is no use. I therfore need a p.d, freeware, shareware or
- anything else ware Script Editor. That is unless the next version of
- Apple's Script Editor will support longer scripts.
-
- At present the script is 29935 bytes of text, 135162 bytes of styled text,
- 667 lines and 4927 words according to OtherMenu. The Description is pretty
- short, 5 or so lines.
-
- Failing that what's the easiest way to continue with my present Script
- Editor. I expect it's along the lines of Jon's Commands (I think) do script
- or something similar. I don't really want to have to deal with allowing the
- other mini-scripts access to each others variables. Has anyone got any
- examples or suggestions.
-
- Finally does anyone have any email addresesses (how do you spell that?) at
- Apple for suggestions, comments etc?
-
- Thanks in advance, Neil.
-
- P.S
- I've rolled these questions into one message to save mailbox space and
- reduce costs for those on a pay per message email system.
-
- Neil Christie |Voice/Fax: 031 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Sun, 21 Aug 1994 09:29:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: Alternative Script Editor needed, do script, maximum length
-
- >Hi,
-
- Hi.
-
- > I therfore need a p.d, freeware, shareware or
- >anything else ware Script Editor. That is unless the next version of
- >Apple's Script Editor will support longer scripts.
-
- I don't think there are any freeware/shareware/pd script editors that will
- solve your problem.
-
- >Failing that what's the easiest way to continue with my present Script
- >Editor.
-
- The best way to handle this is to copy some related handlers, and save them
- in a separate script. Use the Load Script Addition to load them into your
- main script, and Tell statements to call handlers in the loaded script.
- This way, each of your scripts can approach the maximum length. The benefit
- of doing this, when its done right, is that it makes code easier to reuse:
- you can have libraries of routines that can be loaded & used by separate
- scripts. Its easier than reinventing the wheel each time, or copying &
- pasting routines from script to script. Load Script is documented on page
- 226 of the AppleScript Script Language Guide.
- =========================================================================
- Date: Sun, 21 Aug 1994 17:39:06 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: Re: Alternative Script Editor needed, do script, maximum length
-
- In Regards to your letter <199408211535.AA00842@exnet.com>:
- > Hi,
- >
- > The AppleScript project I'm working on at the moment has just run into a
- > serious problem, it's reached the maximum length of the Script Editor. As I
- > need to add more to it and can't remove any of the script I need an
- > alternative Script Editor. At present I'm running Apple's Script Editor
- > v1.1 along with AppleScript v1.1. I can't really afford anything commercial
- > as I'm only 15 and have to pay for my Internet access. Therefore
- > ScriptWizard is no use. I therfore need a p.d, freeware, shareware or
- > anything else ware Script Editor. That is unless the next version of
- > Apple's Script Editor will support longer scripts.
- >
- > At present the script is 29935 bytes of text, 135162 bytes of styled text,
- > 667 lines and 4927 words according to OtherMenu. The Description is pretty
- > short, 5 or so lines.
- >
- > Failing that what's the easiest way to continue with my present Script
- > Editor. I expect it's along the lines of Jon's Commands (I think) do script
- > or something similar. I don't really want to have to deal with allowing the
- > other mini-scripts access to each others variables. Has anyone got any
- > examples or suggestions.
-
- Even though ScriptWizard would help a bit, there may be a better way to
- solve your problem that would also work with the Apple Script Editor.
- It's best not to build gigantic monolithic scripts in AppleScript
- (or any other scripting or programming language) - it's not good style.
- Your script will be much easier to maintain and debug if you split
- it into smaller modules:
-
- Try breaking the script up into logically-organized modules containing
- related handlers, each module in its own script file. The main body of the
- script can then use the "load script" command to load these separately
- saved script modules into variables in memory, and then you can send
- messages to those script-object variables to execute the functions defined
- in them. You'll have to reorganize your code a bit but you'll be better
- off for it (for instance, globals can't be simply shared between handlers
- in the script objects and the main script, although they can be referenced
- if you need to; but you don't use too many globals, do you?)
-
- A good example of this approach is the "finderlib" script library
- that was distributed with AS 1.0; use the same approach and your script
- can effectively be as large as you like.
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Sun, 21 Aug 1994 10:20:58 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: your mail
- In-Reply-To: <199408210858.BAA16905@mail3.netcom.com>
-
- On Sun, 21 Aug 1994, Wagner Luiz Truppel wrote:
-
- > is it possible to test for a key being held down at launching time of a AS
- > applet or droplet? I mean something like the HyperCard snippet
-
- The Jon'sCommands Scripting Addition (presumably available from gaea) has
- a "keys pressed" command which returns a list of the keys being pressed.
- It's excellent. I have one script for setting my volume, depending on
- what number is pressed when I launch the script. I also have a script
- which will either reveal the original of an alias (via normal
- drag-and-drop) or will open the Get Info window of the original (if the
- option key is held down on dragging-and-dropping).
-
- Derrick
- =========================================================================
- Date: Sun, 21 Aug 1994 10:25:27 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Second edition of Tao book
- In-Reply-To: <199408201635.JAA27442@mail.netcom.com>
-
- On Sat, 20 Aug 1994, Terry Thiel wrote:
-
- > I thnk the new edition is Great!! I ordered two copies in fact. I got mine
-
- Thanks! It's nice to hear that.
-
- > BMUG's ordering. I wish they would do something about that. You're supposed
- > to leave your visa number on a recording and wait weeks for the product
- > unless you pay $25 extra for rush shipping.
-
- Ah, yes. The constant BMUG problem. Our shipping department (last time I
- checked, it was only one or two part-time people) gets really swamped and
- it does take them a while to get things out. In addition, it takes a
- while for the order to filter its way through our office staff. They do
- work hard to get things out quickly, but it's the old "overworked,
- understaffed" problem.
-
- Derrick
- =========================================================================
- Date: Sun, 21 Aug 1994 13:23:59 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <ANBROWN@HUSC.BITNET>
- Subject: What is the gaea ftp site again?
- In-Reply-To: <01HG6820L6XE9VZ0Z3@NETOP8.HARVARD.EDU>
-
- What is the of the gaea ftp site, either with the pathname or the ip address?
-
- I erased the message with the site name by accident
-
- Anthony
-
- -- The Dolphins will win the Super Bowl this season!
-
- -- "If never I held you, my feelings would never show...
- -- It's time I started walking but
- -- Theres so much you'll never know!!"
- -- Paul Stanley circa 1976
- =========================================================================
- Date: Sun, 21 Aug 1994 20:10:14 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Christian Orellana <muscabo@DFI.AAU.DK>
- Subject: Re: Wanted: CTB osax
-
- daver@netcom.com wrote:
- >Here is my 'wish list' if anyone is going to write such as OSAX:
- >
- >- Should have capability of "wait for string" and "send string", like ZTerm
- >and Microphone.
- >
- >- Should have capability of putting received data into a variable, like the
- >TCP/IP OSAX can do. This allows you to write if/then statements about what
- >to do depending on the data sent.
- >
-
- This would indeed be very nice, and is a thing that has annoyed me about
- SITcomm, which allows you to "wait for text", but only if you know what to
- wait for!
-
- Best regards -
- Christian A.Borlund Orellana
- Institute of Physics and Astronomy Aarhus University.
- ______________________________________________________
- Internet e-mail: muscabo@dfi.aau.dk
- voice: +45-86102798
- mail: Dr.Margrethesvej 11,3.th.
- 8200 Aarhus N, DENMARK.
- ______________________________________________________
- =========================================================================
- Date: Sun, 21 Aug 1994 14:24:52 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Martin <martin@METRONET.COM>
- Subject: Re: Wanted: CTB osax
-
- >daver@netcom.com wrote:
- >>- Should have capability of putting received data into a variable, like the
- >>TCP/IP OSAX can do. This allows you to write if/then statements about what
- >>to do depending on the data sent.
- >>
- >
- >This would indeed be very nice, and is a thing that has annoyed me about
- >SITcomm, which allows you to "wait for text", but only if you know what to
- >wait for!
-
- You can use file capturing to get the text. Just turn it on before you send
- the text, turn it off afte you get your match and then read the file in to
- a variable so you can act on it. I use this method in a Hypercard stack
- that downloads stock quotes from BASICQUOTES on Compuserve and it works
- quite well.
-
- Steve Martin (Please don't ask, I'm not the actor.)
- martin@metronet.com
- WWW: http://www.metronet.com/1/HomePages/martin
- Upcoming letterboxed movie TV schedule and latest version of Dockernaut
- =========================================================================
- Date: Sun, 21 Aug 1994 13:24:30 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Re: creation of a MacScripting newsgroup -Reply -Reply
-
- If you have to actually go out and read the newsgroup, I wouldn't be
- able to easily participate.
-
- If you decide to make a newsgroup, then please be sure to keep the
- mailing list as well and link to it...but my preference is to _STAY
- A MAILING LIST_...
- =========================================================================
- Date: Sun, 21 Aug 1994 14:42:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Wanted: CTB osax
-
- >- Should have capability of "wait for string" and "send string", like ZTerm
- >and Microphone.
- >
- This is pretty easy...
-
-
- >- Should have capability of putting received data into a variable, like the
- >TCP/IP OSAX can do. This allows you to write if/then statements about what
- >to do depending on the data sent.
- >
- This is not :(. The reason is that unlike TCP/IP which is
- packetized, serial port data is just that a "serial stream" of bytes. How
- often do you return the data? Who does buffering?
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Mon, 22 Aug 1994 09:52:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: creation of a MacScripting newsgroup
-
- Fred Terry <pfterry@LKS.CSI.COM> writes:
-
- >The simplest (perhaps, sanest?) way to do this--if we do
- >it at all--is to create a new group. An probably one that does not have
- >programming in it's name.
-
- OK, I'm willing to bow to the views of those with a bit more knowledge about
- this. I thought it would make for rationalization to combine the existing
- HyperCard group into a scripting group, but obviously there's a certain
- element of politicking about this (cf the proposal for a SuperCard group).
-
- >And Lawrence, where did you get that 399 number? A rev macscrpt just show 779
- >members (which is down from 780-something since the last time I checked). Or
- >did I misunderstand?
-
- Every time I send a message to this list, I get a response from the server
- saying my message was successfully delivered, with a parenthetical note about
- N participants/recipients. N started out around 434, and slowly dropped. The
- last couple of messages it was 399.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 22 Aug 1994 09:53:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Any way to "compile" a s
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >Here's a working example:
- >
- > run script "display dialog \"Here I am\""
- >
- >
- >----------
- >However, I have Run Script 1.1.1b1 (April 1994). Someone else will have to
- >remember where I got that update ;-)
-
- My version of Run Script is 1.1, and the above example worked for me.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 22 Aug 1994 15:25:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Scriptable Finder oddity
-
- Here's a strange one. Our Quadra 950 server is running PowerShare and a bunch
- of other things, including AppleScript and QuicKeys 3.0 so things can be
- controlled remotely. I also put on the Finder Scripting Extension, thinking
- I could use that to do a remote backup of the Users & Groups Data File, which
- is locked against access from an AppleShare client. I just tried to send
- the server's Finder a command to copy that file, and it doesn't work.
-
- I'm logged on to the server as super-user. I can open the Preferences folder
- of the Server Folder, and I can see all the files there, including the
- Users & Groups Data File. Yet when I try the following script
-
- tell application "Finder" of machine "Vice"
- name of every file of folder "Preferences" of folder "Server Folder"
- of startup disk
- end tell
-
- (assume a line-continuation at the appropriate place), it lists all the
- files, *except* the Users & Groups Data File! I'm linked to the Finder as
- super-user, in case that should make any difference.
-
- The file isn't being skipped because it's in use, either: the PowerTalk Setup
- Preferences file is in use and cannot be copied via AppleShare, yet it shows
- up in the list OK. I also tried creating another file with a name beginning
- with Z, just in case the bug happened to affect the last file in the list,
- but that extra file shows up fine, while the Users & Groups Data File still
- doesn't.
-
- Interesting. By messing around with the type and creator of that extra file
- I created, it appears the Finder is deliberately ignoring files with creator
- "ugbt" (the file type doesn't seem to matter).
-
- Any ideas as to why this is happening, anybody?
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Sun, 21 Aug 1994 22:07:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Scriptable Finder oddity
-
- "Lawrence D'Oliveiro" <LDO@WAIKATO.AC.NZ> wrote:
- >
- >Interesting. By messing around with the type and creator of that extra file
- >I created, it appears the Finder is deliberately ignoring files with creator
- >"ugbt" (the file type doesn't seem to matter).
- >
- >Any ideas as to why this is happening, anybody?
-
- I'm betting it was viewed as a security risk. I just tried on my machine
- (7Pro with the Scriptable Finder) and couldn't get the U&G file either.
- Turning sharing off didn't help either. It looks like the Scriptable
- Finder just doesn't want you to mess with that file.
-
- Time for an osax! ;)
-
- Jon
- =========================================================================
- Date: Sun, 21 Aug 1994 22:08:01 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Alternative Script Editor needed, do script, maximum length
-
- Neil Christie <neil@CHRISTIE.DEMON.CO.UK> writes:
- >
- >The AppleScript project I'm working on at the moment has just run into a
- >serious problem, it's reached the maximum length of the Script Editor. As I
- >need to add more to it and can't remove any of the script I need an
- >alternative Script Editor. At present I'm running Apple's Script Editor
- >v1.1 along with AppleScript v1.1. I can't really afford anything commercial
- >as I'm only 15 and have to pay for my Internet access. Therefore
- >ScriptWizard is no use. I therfore need a p.d, freeware, shareware or
- >anything else ware Script Editor. That is unless the next version of
- >Apple's Script Editor will support longer scripts.
-
- I just submitted my ScriptServer application to Sumex and Fred. It allows
- you to use MPW to edit your scripts and then build them with ScriptServer.
- MPW has no 30K limit. It should be easy to write a BBEdit extension too.
- You lose the styled text this way, but you gain the ability to use #include
- files and/or the C preprocessor (we just use an MPW script which does the
- #include since the preprocessor takes more time). This allows you to make
- libraries of scripts without the overhead of extra files and load/store
- commands.
-
- ScriptServer is shareware, so it's almost free. ;)
-
- Jon
- =========================================================================
- Date: Mon, 22 Aug 1994 07:09:39 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Ralph Flassig <flassig@COLI.UNI-SB.DE>
- Subject: frontier, quark, object model
-
- Greetings,
-
- I just started scripting QuarkXPress with Frontier and I must have something
- missing, because I do have problems with the object model. I did some AS
- scripting before and all worked fine especially constructions like
- tell default document 1
- set ....
- But playing around with the example DocumentConstruction script delivered with
- the QuarkXPress Frontier Suite I always get the error message "specified object
- not found" when I try the with code like
- with defaultdocument[1]
- oldHeight = get(pageHeight)
- ...
- it works fine with
- oldHeight = get(defaultdocument[1].pageHeight)
-
- Sorry for this newbie question, but after but after all the debugging and
- stepping around (I can be more explicit, if needed) I thought someone of
- you must have seen similar problems
-
- thanks in advance
-
- ralph
- =========================================================================
- Date: Mon, 22 Aug 1994 17:15:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Scriptable Finder oddity
-
- Jon Pugh <jonpugh@NETCOM.COM> writes:
-
- >"Lawrence D'Oliveiro" <LDO@WAIKATO.AC.NZ> wrote:
- >>
- >>Interesting. By messing around with the type and creator of that extra file
- >>I created, it appears the Finder is deliberately ignoring files with creator
- >>"ugbt" (the file type doesn't seem to matter).
- >
- >I'm betting it was viewed as a security risk.
-
- I'm inclined to agree. However, unlike another security hack the Finder does
- (disallowing invocation of the shutdown and restart commands by programs
- linking over the network), this one is a denial to _all_ users: even if you ask
- your local Finder, it still won't let you see your own Users & Groups Data File!
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Sun, 21 Aug 1994 22:26:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Scriptable Finder oddity
-
- >"Lawrence D'Oliveiro" <LDO@WAIKATO.AC.NZ> wrote:
- > then Jon Pugh <jonpugh@NETCOM.COM> wrote:
- >
- >I'm betting it was viewed as a security risk. I just tried on my machine
- >(7Pro with the Scriptable Finder) and couldn't get the U&G file either.
- >Turning sharing off didn't help either. It looks like the Scriptable
- >Finder just doesn't want you to mess with that file.
- >
- >Time for an osax! ;)
-
- Didn't the mighty Quinn (or was that Quinn the eskimo) write an osax that
- is on gaea that reads and writes the users and groups file for AppleShare?
- Will that osax handle this users and groups file?
-
- Kee Nethery
- =========================================================================
- Date: Mon, 22 Aug 1994 18:11:32 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Text delimiters - why not working?
-
- I am trying to parse out items from a text string. Unfortunately chars like
- hash, star(*) etc seem to count as separate words even when you define the
- delimiters:
-
- set AppleScript's text item delimiters to { " ", tab}
- set vt to "QUERYPERSNAME" & tab & "#WATSON"
- set vz to second word of vt
-
- produces vz equal to #.
-
- Any suggestions?
-
-
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Sun, 21 Aug 1994 23:29:34 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: frontier, quark, object model
-
- >Greetings,
- >
- >I just started scripting QuarkXPress with Frontier and I must have something
- >missing, because I do have problems with the object model. I did some AS
- >scripting before and all worked fine especially constructions like
- >tell default document 1
- > set ....
- >But playing around with the example DocumentConstruction script delivered with
- >the QuarkXPress Frontier Suite I always get the error message "specified object
- >not found" when I try the with code like
- >with defaultdocument[1]
- > oldHeight = get(pageHeight)
- >...
- >it works fine with
- >oldHeight = get(defaultdocument[1].pageHeight)
- >
- >Sorry for this newbie question, but after but after all the debugging and
- >stepping around (I can be more explicit, if needed) I thought someone of
- >you must have seen similar problems
-
- I'm assuming that "outside" the
- with defaultDocument [1]
- you have a with objectModel, qxp.defs
-
- If you happen to be using Frontier 3.0.2, your problem is explained by an
- error which crept into that version. It was a matter of not carrying
- default objects into called scripts when it didn't make sense to do so.
- Unfortunately, there are cases where it DOES make sense...your code is an
- example.
-
- If you are running Frontier 3.0.2, you can upgrade to 3.0.3 using the
- upgrader found at
-
- ftp://gaea.kgs.ukans.edu:frontier/FromUserland/upgrade303.sea.hqx
-
- [If you happen to be running Frontier for PPC 3.0.2, send me email.]
-
- You can probably force 3.0.2 to do the job you want by saying
- with defaultdocument[1]
- oldHeight = get(objspec (pageHeight))
-
-
- For other Frontier versions, I would need to see more of the script.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Sun, 21 Aug 1994 23:43:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Text delimiters - why not working?
-
- >I am trying to parse out items from a text string. Unfortunately chars like
- >hash, star(*) etc seem to count as separate words even when you define the
- >delimiters:
- >
- >set AppleScript's text item delimiters to { " ", tab}
- >set vt to "QUERYPERSNAME" & tab & "#WATSON"
- >set vz to second word of vt
- >
- >produces vz equal to #.
- >
-
- Words are delimited as words, including the effect you see with #. Text
- items are delimited by the text item delimiters. The two processes are not
- related.
-
- One might therefore think that this would do what you want:
-
- set AppleScript's text item delimiters to {" ", tab}
- set vt to "QUERYPERSNAME" & tab & "#WATSON"
- set vz to second text item of vt
-
-
- however, it won't. What will work is this:
-
- set AppleScript's text item delimiters to {tab} -- A subtle change here
- set vt to "QUERYPERSNAME" & tab & "#WATSON"
- set vz to second text item of vt
-
- ----------
- Notice that I slipped in a change to the first line of script. This is
- because of this comment in the AppleScript Language Guide English Dialect
- currently in bookstores:
-
- "Currently, AppleScript only uses the first delimiter in the list" (page 159)
-
- [Experiment verifies that version 1.1 behaves this way.]
-
- So...setting AppleScript's text item delimiters to { " ", tab } is the same
- as setting it to { " " }
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 22 Aug 1994 08:41:46 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: Re: Alternative Script Editor needed, do script, maximum length
-
- In Regards to your letter <199408220511.AA20144@exnet.com>:
- >
- > ScriptServer is shareware, so it's almost free. ;)
- >
-
- But MPW isn't free or share-ware. Or is it ?
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Mon, 22 Aug 1994 08:39:45 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Any way to "compile" a script - SOLVED!
-
- A person on AOL pointed out that jons commands 1.2 has a "run script"
- command that is incompatible with AS 1.1. Version 1.3 fixes that problem. I
- removed the 1.2 osax and now everything works fine!
-
- Thanks for your help!
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Mon, 22 Aug 1994 09:42:47 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: The fastest way to insert text
- In-Reply-To: <9408221246.AA06926@coral.bucknell.edu>
-
- I'm writing a scrip which I'm trying to optimize for speed. The slowest
- part involves opening up a text file, finding a marker, inserting a line
- of text, and closing the file. Following is my code to do this. Anyone
- have some better ideas about how to make this faster?
-
- Thanks,
-
- Jeff
-
- position file indexRefNum at 0
- set indexfile to read indexRefNum until eof
-
- repeat with n from 1 to 10000 -- find the section marker
- set indexline to paragraph n of indexfile
- if indexline is ("this is the marker") then
- set eof indexRefNum to 0 -- live dangerously and
- wipe out the file
- repeat with m from 1 to (n - 1) -- write up to
- the section marker
- write (paragraph m of indexfile & return)
- to indexRefNum
- end repeat
- write entry to indexRefNum
- repeat with m from n to 10000
- try -- write the rest of the file
- write (paragraph m of indexfile &
- return) to indexRefNum
- on error
- exit repeat
- end try
- end repeat
- exit repeat
- end if
- end repeat
-
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
- =========================================================================
- Date: Mon, 22 Aug 1994 08:45:30 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Alternative Script Editor needed, do script, maximum length
- In-Reply-To: Your message of "Sun, 21 Aug 94 22:08:01 PDT"
-
- Jon sez.....
-
- >I just submitted my ScriptServer application to Sumex and Fred. It allows
- >you to use MPW to edit your scripts and then build them with ScriptServer.
- >MPW has no 30K limit. It should be easy to write a BBEdit extension too.
- >You lose the styled text this way, but you gain the ability to use #include
- >files and/or the C preprocessor (we just use an MPW script which does the
- >#include since the preprocessor takes more time). This allows you to make
- >libraries of scripts without the overhead of extra files and load/store
- >commands.
-
- You'll find ScriptServer in
-
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/ScriptServer1.0a3.hqx
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Mon, 22 Aug 1994 11:03:37 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: The fastest way to insert text
-
- >The slowest part involves opening up a text file, finding a
- >marker, inserting a line of text, and closing the file.
- >Following is my code to do this. Anyonehave some better
- >ideas about how to make this faster?
- [script deleted]
-
- Rather than loop through the file, use the Offset scripting addition to find
- the offset of the beginning character count of your marker.
-
- Danny Goodman
- =========================================================================
- Date: Mon, 22 Aug 1994 11:30:53 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Oscar Retterer <O_Retterer@ACAD.FANDM.EDU>
- Subject: AppleShare?
-
- Is AppleShare scriptable, or is there a way to send AppleScripts to
- AppleShare?
-
-
-
-
-
-
-
- *********************************************************************
- Oscar Retterer, Educational Development, Academic Technology Services
- Franklin & Marshall College, Lancaster, PA 17604-3003
- Phone: 717-291-4019 Fax:717-399-4446 Internet:O_Retterer@fandm.edu
- *********************************************************************
- =========================================================================
- Date: Mon, 22 Aug 1994 11:28:13 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: The fastest way to insert text
-
- >I'm writing a scrip which I'm trying to optimize for speed. The slowest
- >part involves opening up a text file, finding a marker, inserting a line
- >of text, and closing the file. Following is my code to do this. Anyone
- >have some better ideas about how to make this faster?
-
- The fastest way is to avoid many read/write/test things!
- I bet this will really speed it up.
-
- ( you could generalize this into multiple replace, but that's an exercise
- for the reader)
-
- -- this uses Apple's open/read/write scripting additions
-
- -- set entry to some value to write
- set entry to "I'm new TEXT" & return
-
- -- the marker we're looking for
- set marker to "this is the marker" & return
-
- -- open file (use your file name)
- set indexRefNum to open for access file "System:Desktop Folder:test" with
- write permission
-
- -- read whole file
- set indexfile to read indexRefNum
-
- -- find offset in file of the marker
- set markerLoc to offset of marker in indexfile
-
- -- NOTE: offset will be 0 if not found
- if markerLoc = 0 then
- if indexfile does not start with marker then -- bail out!
- display dialog "bail"
- close access indexRefNum
- return
- end if
- end if
-
- -- write new string to file at the correct position
- write entry to indexRefNum starting at markerLoc
-
- -- write out rest of file
- write (text from character (markerLoc + (length of marker)) of indexfile to
- character -1 of indexfile) to indexRefNum
-
- -- bada-bing, bada-boom, bada-replaced!
- close access indexRefNum
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Mon, 22 Aug 1994 08:36:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: What happend to "without warning" with copy?
-
- The scriptable Finder has Copy as a replacement for the scripting addition
- CopyFiles command, but there is no equivalent for "without warning". The
- move command has "replacing conflicts", but it doesn't work across volumes.
- Any ideas?
-
- -Erik
- =========================================================================
- Date: Mon, 22 Aug 1994 08:54:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: What happend to "without warning" with copy?
-
- At 8:36 8/22/94 -0800, Erik Smith wrote:
- >The scriptable Finder has Copy as a replacement for the scripting addition
- >CopyFiles command, but there is no equivalent for "without warning". The
- >move command has "replacing conflicts", but it doesn't work across volumes.
- >Any ideas?
-
- Oh, so that was the problem. I was wondering why 'with replacing' wasn't
- working for me.
-
- I've basically made a subroutine to copy all folders from one folder to another:
-
- on CopyRepFolderContents(SrcFolder, DestFolder)
- tell application "Finder"
- copy (get every folder of folder DestFolder) to TargFols
- copy (get every folder of folder SrcFolder) to SrcFols
-
- set TFT to {}
- repeat with X in TargFols
- set TFT to TFT & (name of X)
- end repeat
- set SFT to {}
- repeat with X in SrcFols
- set SFT to SFT & (name of X)
- end repeat
-
- repeat with Fol in TFT
- if (SFT contains Fol) then
- delete folder (Fol as text) of folder
- (DestFolder as text)
- end if
- end repeat
- empty the trash
-
- duplicate every folder of folder SrcFolder to folder
- DestFolder with replacing
- end tell
- end CopyRepFolderContents
-
- It's not elegant, but it works...
-
- -roy
- =========================================================================
- Date: Mon, 22 Aug 1994 10:51:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: AppleShare?
- In-Reply-To: Your message of "Mon, 22 Aug 94 11:30:53 CDT"
-
- >Is AppleShare scriptable, or is there a way to send AppleScripts to
- >AppleShare?
-
- It isn't but you can do some Users and Groups manipulation with the Users and
- Groups osax
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/users-and-groups-osax-11b.hqx
-
- At one point, AppleShare Admin (from the company that makes Radar; sorry,
- don't remember their name) was supposed to be released in a scriptable
- version. The current version understands Apple events, but they aren'd
- documented.
-
- pf
- =========================================================================
- Date: Mon, 22 Aug 1994 17:55:19 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: AETE for AppleSearch
-
- A colleague has a need for an aete resource so he can directly script
- AppleSearch (which, although it doesn't support the AE Object Model,
- does have a comprehensive Apple Event API). Before we dive in and
- create one from scratch, has anyone already done the deed?
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Mon, 22 Aug 1994 12:53:35 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: *PlainTalk & AppleScript*
-
- Well, I just installed PlainTalk on my PowerMac.
- When I ask it what time it is, the computer says:
- "Error in script, can't set minutes to" and then whatever time it is.
- The script is as follows:
-
- set d to current date
- set x to (time of d)
- set hour to (x div 3600)
- set x to (x - (hour * 3600))
- set mins to (x div 60)
- set secs to (x - (mins * 60))
- if (hour = 0) then
- set hourstr to "midnight "
- else
- if (hour > 12) then
- set hour to (hour - 12)
- end if
- set hourstr to (hour as string) & " "
- end if
- if mins = 0 then
- if hour = 0
- set minsstr to " "
- else
- set minsstr to "o'clock "
- end if
- else
- set minsstr to (mins as string) & " "
- end if
- if secs = 0 then
- set secsstr to "exactly"
- else if secs = 1 then
- set secsstr to "and " & secs as string & " second"
- else
- set secsstr to "and " & secs as string & " seconds"
- end if
- acknowledge saying (hourstr & minsstr & secsstr) caption (time string of d)
-
- Yup, it's Applescript. Can anyone HELP?
- =========================================================================
- Date: Mon, 22 Aug 1994 12:52:17 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Re: Online&Shutdown
-
- I would like my Mac to log on to AOL (& some other services, too), do a
- flashsession, quit the application & shutdown the machine. Sounds like a
- pretty common situation, but I have found no software that will do that. I've
- given up on AOL adding a 'shutdown when finished' option on the flashsessions
- screen. Currently I use QuicKeys to launch AOL five minutes before a
- flashsession is scheduled, then to shutdown a half hour later. I often do
- this after adding multiple files to the Download Manager, and am always
- 'adjusting' how long to wait before shutting down. (I usually go right to bed
- after stacking up email & files to send/receive) I also want this to happen
- once a day, to get my email, etc. and never know how long to set the shutdown
- for.
-
- My Mac powers up (& down) several hard drives, CD-ROM Drives, etc., as part
- of the startup/shutdown process and so I am interested in shutting the whole
- thing down when it is no longer needed. I can also set the system up to power
- on at a predetermined time.
-
- Is this something I can accomplish with AppleScript? Specifically, the Script
- needs to recognize that the download process has finished, either by waiting
- for the 'Goodbye from AOL' window to be put up (or some other event,
- depending on the service I'm connecting to), or sensing that the modem is no
- longer communicating. Ideally, I guess I would want it to run several program
- in sequence, run the appropriate email/flashsesion-equivalent routine for
- each program, and after the last program is finished, shutdown the system.
- (whew!)
-
- If anybody knows of other (easier to use) software that would accomplish
- this, I would be grateful for a point in the right direction, also.
-
- Thanks,
- MJL
- =========================================================================
- Date: Mon, 22 Aug 1994 12:54:55 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: AppleScript Objects
-
- ===Question from someone=========
-
-
- I'm trying to understand the extent to which AppleScript (AS) is truly
- object-oriented, and would appreciate some information and/or guidance.
-
- I've been reading about script objects in both Derek Schneider's The Tao of
- AppleScript and Danny Goodman's The Complete AppleScript Handbook. I'm also
- familiar with (but admittedly not well-versed in) the Think Class Library
- (TCL). (I also do a lot of HyperTalk scripting.)
-
- >From what I've learned, there seems to be some direct relationships between
- the object-oriented programming (OOP) concepts in TCL and the
- object-orientation of AS. A "property" in AS corresponds to an object
- "variable" in TCL; a "handler" in a script object in AS compares with an
- object's "method" in TCL. The "parent" property of an AS script object
- defines a sub-class relationship between that script object and another, much
- as a formatted "struct" declaration defines a sub-class relationship between
- objects in (the C version of) the TCL. AS provides for implicitly
- "overriding" handlers by redefining them, while TCL includes the "override"
- specification for the struct definition.
-
- On the other hand, at least one important aspect of OOP seems to be missing
- in AS. In TCL, object "instances" are created when declared as variables of
- that object type, so multiple objects can be created, each using that
- object's type definition. There doesn't seem to be any way to do this in AS.
- As I see it, the upshot is that in AS I must keep data structures separate
- from script objects if I want to define multiple instances of a script
- object.
-
- I can deal with this, of course, but I wonder: am I missing something in AS
- that would allow me (and perhaps others) to take a completely object-oriented
- approach to AppleScript-ing?
- =========================================================================
- Date: Mon, 22 Aug 1994 14:32:02 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <xenolith@HALCYON.COM>
- Subject: Re: AppleScript Objects
-
- >I'm trying to understand the extent to which AppleScript (AS) is truly
- >object-oriented, and would appreciate some information and/or guidance.
- >
- >I've been reading about script objects in both Derek Schneider's The Tao of
- >AppleScript and Danny Goodman's The Complete AppleScript Handbook.
-
- But not the AppleScript Language Guide? That has the best description.
-
- [comparison of THINK C+- and AS deleted -- they're similar but not the same]
-
- >On the other hand, at least one important aspect of OOP seems to be missing
- >in AS. In TCL, object "instances" are created when declared as variables of
- >that object type, so multiple objects can be created, each using that
- >object's type definition. There doesn't seem to be any way to do this in AS.
- > As I see it, the upshot is that in AS I must keep data structures separate
- >from script objects if I want to define multiple instances of a script
- >object.
-
- No, this is not the case. In fact script objects are a good way of
- partitioning data in your application.
-
- To make multiple objects of the same type you need an object constructor
- function. This is in the spirt of an exemplar based OOP language rather
- than a class based one.
-
- In exemplar object systems you one object (an "exemplar" or factory object)
- and then clone it to make objects of the same type.
-
- Message passing in these systems is generally done by delegation rather
- than inheritence in which objects activly decide where to pass messages
- they can't deal with. With this model a simple form of delegation gives you
- identical functionality to inheritance (you always pass messsages you don't
- understand to your parent). Delegation is more flexible, but can be
- computationly more expensive.
-
- Remember not all object systems are class based! Check out Dylan or CLOS,
- or implementing objects in Scheme, or Object Logo or Self or ...
-
- For (a trivial) example:
-
- -- this function makes objects that keep track of how many times
- -- they greet someone
-
- on MakeGreeter()
- script aGreeter
- property HowManyTimes : 0
-
- set HowManyTimes to 0
-
- to sayHello to someone
- set HowManyTimes to pHowManyTimes + 1
- display dialog "Hello " & someone
- return pHowManyTimes
- end sayHello
- end script
-
- return aGreeter
- end MakeGreeter
-
- set John to MakeGreeter()
- set Fred to MakeGreeter()
-
- tell John to sayHello to "Kevin"
- tell Fred to sayHello to "Kevin"
- tell John to sayHello to "Kevin"
- get HowManyTimes of John
-
-
- Kevin Purcell, N7WIM / G8UDP xenolith@halcyon.com
- Seattle dBug Mac Developers SIG organiser (206) 649-6489
- =========================================================================
- Date: Mon, 22 Aug 1994 16:54:41 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Checking the status of the serial port
-
- --part_AA7E88D1000243E000000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- I'm working on a script to connect to a FirstClass server using SITcomm.
- SITcomm will tell me if IT is accessing the connection (serial port) but it
- doesn't look like I can see if anything else is using the modem. Is there a
- way to do this since we also use FirstClass Client and probably MacPPP? Other
- programs may also access the modem.
-
- Thanks,
-
- Greg Francis
-
- --part_AA7E88D1000243E000000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- --------------------------------------------------------------------------
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- --part_AA7E88D1000243E000000002--
- =========================================================================
- Date: Mon, 22 Aug 1994 20:34:20 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: INRA000 <INRA@MUSICB.MCGILL.CA>
- Subject: Re: Way to have background only script?
- In-Reply-To: In reply to your message of SAT 20 AUG 1994 09:54:06 EDT
-
- >I want to have a script application to be "faceless" i.e. not show up in
- >the application menu. Is there a way to do this. How about a way for the
- >script itself to do it using the scriptable Finder ?
-
- Script Hider, winner of Runner-Up as Best Scripting Hack in the
- Everyday AppleScript contest, does this. It's currently just a hack,
- really, but sometime when I'm less tied up with other (More fiscally
- interesting -- Script Hider is freeware) projects, I'll get around
- to polishing it some more.
-
- Script Hider is available on Gaea.
-
- Cheers,
-
- Mark Aiken
- inra@musicb.mcgill.ca
- =========================================================================
- Date: Mon, 22 Aug 1994 23:41:04 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joel Smith <JoelS7@AOL.COM>
- Subject: FMPro Field listing?
-
- How can I get a complete field list for any particular database. All I can
- get at this point is a list of the fields on the active layout. Am I missing
- something really obvious? This should be simple, but I've tried several
- things and nothing so far. Is this a FileMaker Pro feature?
-
- I can get the number of fields in a database, but I can only get a list of
- field names for the current layout. I can only get names by number for those
- fields on the layout (or so it seems). Any suggestions? Something more
- elegant than looping through all layouts would be good. Thanks
-
- Joel Smith
- =========================================================================
- Date: Mon, 22 Aug 1994 21:28:20 MST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: 103t_english@WEST.CSCWC.PIMA.EDU
- Subject: Re: MACSCRPT Digest - 21 Aug 1994 to 22 Aug 1994
-
- Lawson D. English 103T_ENGLISH@west.cscwc.pima.edu
-
- -INSERT INFORMATIVE AND WITTY MESSAGE HERE-
-
- West Campus Internet Class of 1994
- =========================================================================
- Date: Mon, 22 Aug 1994 21:37:00 MST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: 103t_english@WEST.CSCWC.PIMA.EDU
- Subject: Attachability & Tinkerability...
-
- Where can I find information about the above topics and how to implement them
- in an application?
-
- And...
-
- When is comp.sys.mac.applescript coming?
-
- Lawson D. English 103T_ENGLISH@west.cscwc.pima.edu
-
- -INSERT INFORMATIVE AND WITTY MESSAGE HERE-
-
- West Campus Internet Class of 1994
- =========================================================================
- Date: Tue, 23 Aug 1994 07:51:15 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: Re: Attachability & Tinkerability...
-
- In Regards to your letter <199408230526.AA25397@exnet.com>:
- >
- > Where can I find information about the above topics and how to implement them
- > in an application?
- >
-
- "Inside Macintosh:Interapplication Communication" gives some but not
- all of the story. Check out issues #18 and #19 of Apple's "develop"
- magazine for a couple of articles with sample code. Also, if you know
- someone who has tapes of this year's WWDC, take a look at Lee Buck's
- talk on the same subject (was on day 1 of the conference).
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Tue, 23 Aug 1994 00:40:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Alternative Script Editor needed, do script, maximum length
-
- Paul G Smith <paul@CTALK.EXNET.COM> wrote:
- >
- >Jon Pugh <jonpugh@netcom.com> wrote:
- >> ScriptServer is shareware, so it's almost free. ;)
- >
- >But MPW isn't free or share-ware. Or is it ?
-
- Actually, ScriptServer doesn't need MPW. MPW just happens to be a capable
- editor which I use. You could actually write a script which pieces
- together regular AppleScripts, written in the Script Editor, which does the
- #include trick and then feeds the mess to ScriptServer. You might be able
- to use some of the SSCompile MPW script as a beginning, although there will
- be some significant differences. ;) You could run the script from OSA
- Menu in the Script Editor. It would be a custom compile and/or run
- command. There are certain hurdles to be overcome, but that would solve
- the lad's problem without any additional cost.
-
- This sounds like a good idea too. Perhaps I'll get around to it, although
- I would prefer to improve someone else's first pass. Consider it an
- exercise for the readers. ;)
-
- Jon
- =========================================================================
- Date: Tue, 23 Aug 1994 00:40:09 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Any way to "compile" a script - SOLVED!
-
- John Schettino <js12@GTE.COM> wrote:
- >
- >A person on AOL pointed out that jons commands 1.2 has a "run script"
- >command that is incompatible with AS 1.1. Version 1.3 fixes that problem. I
- >removed the 1.2 osax and now everything works fine!
-
- Nitpicking details: Jon's Commands 1.2 has an FSSpec <-> String coercion
- which revealed a bug in the Apple Run Script osax (written by a friend of
- mine). He acknowledges the bug as his fault. In Jon's Commands 1.3 I
- worked around his bug since I could rev mine before he could rev his Apple
- endorsed osax. Now we both work. ;)
-
- Jon
- =========================================================================
- Date: Tue, 23 Aug 1994 00:40:11 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: AppleScript Objects
-
- Kevin Purcell <xenolith@HALCYON.COM>
- >
- >>I'm trying to understand the extent to which AppleScript (AS) is truly
- >>object-oriented, and would appreciate some information and/or guidance.
-
- Kevin does an awesome job of explaining this and provides an excellent
- example (except for the typos ;). However, he missed one thing in his
- example, and that is the inheritence.
-
- A more complete example follows. An important thing to note is that
- Kevin's makeNewGreeter function can be replaced with a reference to a
- script object and then the subclasses will have the same parent. This
- makes the scope of newGreeter quite important.
-
- Jon
-
-
- -- these objects keep track of how many times they greet someone
-
- on makeNewGreeter()
- script newGreeter
- property HowManyTimes : 0
-
- set HowManyTimes to 0
-
- to sayHello to someone
- set HowManyTimes to HowManyTimes + 1
- display dialog "Hello " & someone
- return HowManyTimes
- end sayHello
- end script
-
- return newGreeter
- end makeNewGreeter
-
- script DrGreeter
- property parent : makeNewGreeter()
-
- to sayHello to someone
- continue sayHello to ("Dr. " & someone)
- end sayHello
- end script
-
- script ButtFaceGreeter
- property parent : makeNewGreeter()
-
- to sayHello to someone
- continue sayHello to ("ButtFace " & someone)
- end sayHello
- end script
-
- set John to DrGreeter
- set Fred to ButtFaceGreeter
-
- tell John to sayHello to "Kevin"
- tell Fred to sayHello to "Kevin"
- tell John to sayHello to "Kevin"
- get HowManyTimes of John
- =========================================================================
- Date: Tue, 23 Aug 1994 01:28:43 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Angel M. Mayorga" <Angel.Mayorga@STANFORD.BITNET>
- Subject: Automatic Reply from EMS
-
- Folks,
-
- I am on vacation until Tuesday, September 6th. For anything needing
- immediate attention, please phone Nona Kuhlman, 723-2935, or leave
- her e-mail at AS.NON@FORSYTHE.
-
- Angel
- =========================================================================
- Date: Tue, 23 Aug 1994 07:48:59 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Any way to "compile" a script - SOLVED!
-
- >Jon Pugh wrote:
- >Nitpicking details: Jon's Commands 1.2 has an FSSpec <-> String coercion
- >which revealed a bug in the Apple Run Script osax (written by a friend of
- >mine). He acknowledges the bug as his fault. In Jon's Commands 1.3 I
- >worked around his bug since I could rev mine before he could rev his Apple
- >endorsed osax. Now we both work. ;)
-
- Er...I think Jon means Jon's Commands 1.1.2 (vice 1.2) with a coercion
- which caused problems in Apple's Run Script, and versions 1.1.3 (vice 1.3)
- with the work around.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Tue, 23 Aug 1994 11:19:08 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Online&Shutdown
-
- >I would like my Mac to log on to AOL (& some other services, too), do a
- >flashsession, quit the application & shutdown the machine.
-
- None of the AOL software versions I have is scriptable. Perhaps the new 2.5
- is, but I haven't downloaded it yet. My prediction, however, is that it is
- not scriptable either.
-
- Danny Goodman
- =========================================================================
- Date: Tue, 23 Aug 1994 12:34:00 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Richman <mrichman@CMI.ON.CA>
- Subject: Script AOL? (Was-Re: Online&Shutdown)
-
- >None of the AOL software versions I have is scriptable. Perhaps the new 2.5
- >is, but I haven't downloaded it yet. My prediction, however, is that it is
- >not scriptable either.
-
- For what it's worth I checked the beta 2.5 AOL software I have, and it is
- not scriptable.
-
- ------------
- >>I would like my Mac to log on to AOL (& some other services, too), do a
- >>flashsession, quit the application & shutdown the machine.
- >
-
- However, some Macs are able to use a control panel called Auto Power
- On/Off. It allows you to specify days and time for the Mac to TURN ITSELF
- on and off. It's actually really cool to see your Mac turn itself on!
-
- Anyhow, the Mac I know can use it are the IIsi, the Q800, 840av, 7100 and
- 8100 and the new Quadra/LC 630. There may be others but I'm not sure. I
- think any newer Mac that has keyboard power on/off should work. The fact
- that the IIsi works is a bit of a fluke I think.
-
- Mark Richman
- =========================================================================
- Date: Tue, 23 Aug 1994 12:36:41 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nathaniel Comfort at Cold Spring Harbor Lab <comfort@CSHL.ORG>
- Subject: Sybase OSAX?
-
- I have a FileMaker Pro database on my computer and access to a large Sybase
- (SQL) contact db on our Sun network. FMPro says to make SQL queries to a
- Unix db like Oracle or Sybase you need to buy a third-party program such as
- GQL. But Sybase used to support a thing called "dblib" that was a set of
- XFCNs so you could write Hypercard stacks that would make SQL queries. They
- apparently believe Hypercard is obsolete and are now supporting the
- "Programmer's Workbench." But this Hypercard stuff got me thinking...
-
- Has anyone seen/written an OSAX that allows SQL queries? Or, not quite as
- elegantly, is there any way to use the Hypercard XFCN directly in an
- AppleScript? My current kludge is to send a script from FMPro telling
- Hypercard to get the data and put it in the appropriate fields. I'm a bit
- in the dark about all this, so I'd appreciate a greater than the usual
- (pretty high) level of clarity from anyone who might nibble on it.
-
- Thanks,
- Nathaniel
-
-
- /____ / Nathaniel C. Comfort
- |___ / Science Writer
- \_/
- /_\ Cold Spring Harbor Laboratory
- |____\ 1 Bungtown Rd.
- \_____\ Cold Spring Harbor, NY 11724
- \____|
- \_/ voice: (516) 367-8308
- /_\ fax: (516) 367-6814
- /____| internet: comfort@cshl.org
- /_____/
- =========================================================================
- Date: Tue, 23 Aug 1994 12:39:34 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Online&Shutdown
-
- >>I would like my Mac to log on to AOL (& some other services, too), do a
- >>flashsession, quit the application & shutdown the machine.
- >
- >None of the AOL software versions I have is scriptable. Perhaps the new 2.5
- >is, but I haven't downloaded it yet. My prediction, however, is that it is
- >not scriptable either.
- >
- >Danny Goodman
-
- Nope" Version 2.5f5 beta, not scriptable. You can use something like
- quickkeys or KeyQuencer (shareware). Here's some of the KQ readme file
- [note: I've not yet used it, but it looks interesting!]
-
- KeyQuencer introduction and installation notes
-
- * SHAREWARE - $10 CASH - See details in the control panel's online
- documentation.
-
- * KeyQuencer is a powerful and solid macro engine designed to use very
- little memory; it can perform complex tasks that are invoked by a single
- keystroke. KeyQuencer uses a very simple scripting approach and can be
- extended through external extensions, which are the basic building blocks
- that make up a full macro.
-
- * The bundled extensions provide lots of power and functionality: they can
- type some text for you, capture a screen image, open a file or a folder,
- execute a menu command, choose an item from a pop up menu, type a key
- combination, click on a button or anywhere else, change the number of
- colors on your screen, dial a phone number, change the speaker's volume,
- switch to another application, move the front window to a convenient place,
- show the current time and date, quit one or more applications, manage
- multiple clipboards in any application, change the clipboard's contents,
- toggle the balloon help, display a message, play a sound, redraw a window
- or the whole screen, put a PowerBook to sleep, find the coordinates of a
- screen location, invoke the low-level debugger and much more.
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Tue, 23 Aug 1994 09:44:40 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AppleScript Objects
- In-Reply-To: <199408230242.TAA22678@mail2.netcom.com>
-
- On Mon, 22 Aug 1994, Joe Scripter wrote:
-
- > >From what I've learned, there seems to be some direct relationships between
- > the object-oriented programming (OOP) concepts in TCL and the
- > object-orientation of AS. A "property" in AS corresponds to an object
- > "variable" in TCL; a "handler" in a script object in AS compares with an
- > object's "method" in TCL. The "parent" property of an AS script object
- > defines a sub-class relationship between that script object and another, much
- > as a formatted "struct" declaration defines a sub-class relationship between
- > objects in (the C version of) the TCL. AS provides for implicitly
- > "overriding" handlers by redefining them, while TCL includes the "override"
- > specification for the struct definition.
- >
- > On the other hand, at least one important aspect of OOP seems to be missing
- > in AS. In TCL, object "instances" are created when declared as variables of
- > that object type, so multiple objects can be created, each using that
- > object's type definition. There doesn't seem to be any way to do this in AS.
- > As I see it, the upshot is that in AS I must keep data structures separate
- > from script objects if I want to define multiple instances of a script
- > object.
-
- Actually, I've sort of been playing with that idea recently. Here's how I
- see it. You can create a script file which contains the object
- definition, as described in the two books. To make your instance, you
- would then do something like this:
-
- set instance1 to (load script <the file>)
- set instance2 to (load script <the file>)
-
- Where <the file> is the path to the file containing the script. Then each
- of the two variables will be a separate instance of that script object.
- I've only begun playing with this, so I'm not 100% sure that that will
- work. I guess it depends on how AS does this kind of thing.
-
- BTW, I believe you can have a minimal child-parent relationship. I seem
- to remember something about a parent property of a script object. I think
- you give it the name of another script object, and the new object
- inherits everything from it. You can then add, and possibly override your
- own methods.
-
- Anyway, hope that helps.
- Derrick
- =========================================================================
- Date: Tue, 23 Aug 1994 12:45:55 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Re: FMPro Field listing?
-
- Joel Smith wrote:
-
- >How can I get a complete field list for any particular database. All I can
- >get at this point is a list of the fields on the active layout. Am I missing
- >something really obvious? This should be simple, but I've tried several
- >things and nothing so far. Is this a FileMaker Pro feature?
-
- In FMPro, name is a property of field(s) which is in turn an element of layout,
- therefore, try this:
-
- tell application "FileMaker Pro"
- Open alias "Macintosh HD:My Database File"
- tell Database "My Database File"
- set fieldList to Name of every Field of every Layout
- end tell
- end tell
-
- fieldList
- =========================================================================
- Date: Tue, 23 Aug 1994 09:57:22 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AppleScript Objects
- In-Reply-To: <199408230847.BAA06519@netcom2.netcom.com>
-
- Maybe I should play with AS objects some more...
-
- Derrick
- =========================================================================
- Date: Tue, 23 Aug 1994 12:18:21 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: Script AOL? (Was-Re: Online&Shutdown)
-
- >>None of the AOL software versions I have is scriptable. Perhaps the new 2.5
- >>is, but I haven't downloaded it yet. My prediction, however, is that it is
- >>not scriptable either.
- >
- >For what it's worth I checked the beta 2.5 AOL software I have, and it is
- >not scriptable.
- >
- >------------
- >>>I would like my Mac to log on to AOL (& some other services, too), do a
- >>>flashsession, quit the application & shutdown the machine.
- >>
- >
- >However, some Macs are able to use a control panel called Auto Power
- >On/Off. It allows you to specify days and time for the Mac to TURN ITSELF
- >on and off. It's actually really cool to see your Mac turn itself on!
- >
- >Anyhow, the Mac I know can use it are the IIsi, the Q800, 840av, 7100 and
- >8100 and the new Quadra/LC 630. There may be others but I'm not sure. I
- >think any newer Mac that has keyboard power on/off should work. The fact
- >that the IIsi works is a bit of a fluke I think.
- >
- >Mark Richman
-
- Hi guys
-
- I can't speak for AOL but as for timed shutdowns etc you should give "Cron"
- a test drive. (Information at the end of this post.) This could arguably be
- the best addon for the Mac I have ever located :-)
-
- Amongst other things (auto powerdowns/restarts included) I use it to
- autolaunch script that have been saved as apps. With it I have been able to
- accomplish all manner of wonderful things.
-
- If you need further Info e-mail for a chat!
-
- Frank C.
- R&E
-
- Oh and the "AutoPower On/Off" CP works with Quadra 900 as well.
-
-
-
- "
- **************************************************
- Cron
- version 1.0d16
- by Chris W. Johnson <chrisj@mail.utexas.edu>
-
- Chris W. Johnson
- 4505-B Avenue H
- Austin, TX 78751
-
- FINDING THE LATEST VERSION
- **************************************************
-
- You can find the latest version through the web page whose URL is listed
- above, or you can just do an anonymous FTP to emx.cc.utexas.edu and look
- in the pub/gatekeeper directory (yes, I'm the same guy who wrote the
- Gatekeeper anti-virus system).
- "
- =========================================================================
- Date: Tue, 23 Aug 1994 14:31:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Scott Andersen <Scott_O._Andersen@POL.COM>
- Organization: Productivity OnLine 513-333-3111
- Subject: Re: AppleShare?
-
- That program, from Sonic Systems is Server Sentry. I have scripted to it
- with Frontier, but have failed so far with Applescript, (only that Frontier
- drives Quickeys and then Server Sentry.)
-
-
- Scott
- =========================================================================
- Date: Tue, 23 Aug 1994 11:42:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Here is a nested folder maker
-
- As part of my goal of using AppleScript as a software installer, I have
- created this script which can be used to create a folder tree from a path
- string. Just having make is not enough if you don't know if the parent
- folders exist. I found it easiest to use recursion. If you know of a
- better way to do this, please let me know.
-
- Here it is:
-
- on fmake(path)
- -- takes a path string and creates folders
- -- all along the path as necessary
- -- syntax: fmake("pathstring") of me
- -- Example fmake("Speedy:one:two:three")
-
- set textItemDelimiters to AppleScript's text item delimiters
- set AppleScript's text item delimiters to {":"}
- set rvalue to fmake2(path) of me
- set AppleScript's text item delimiters to textItemDelimiters
- return rvalue
- end fmake
-
-
- on fmake2(path)
- -- recursive function which starts of the end of the
- --path and works backwards until an existing path is found
- tell application "Finder"
- if path = "" then
- return false
- else
- if exists container path then
- return true
- else
- set path2 to text from text item 1 to text item
- -2 of path
- if fmake2(path2) of me then
- make new folder at container path2 with
- properties {name:last text
- item of path}
- return true
- else
- return false
- end if
- end if
- end if
- end tell
- end fmake2
-
-
-
-
- ______________________________________________________________________
- Erik Smith | ersmith@ucsd.edu Internet
- Computing Services Director | (619) 534-1989 office
- | (619) 534-3939 fax
- ______________________________________________________________________
- Graduate School of International Relations and Pacific Studies (IR/PS)
- University of California, San Diego (UCSD)
- ______________________________________________________________________
- =========================================================================
- Date: Tue, 23 Aug 1994 13:38:07 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <xenolith@HALCYON.COM>
- Subject: Re: AppleScript Objects
-
- >Maybe I should play with AS objects some more...
- >
- >Derrick
-
- You should -- they're the most fun things in AS.
-
- Shame they didn't include elements. You'd be able to build full grown
- scriptable apps in AS.
-
- Maybe in AS 2.0
-
- Have fun!
-
- Kevin Purcell, N7WIM / G8UDP xenolith@halcyon.com
- Seattle dBug Mac Developers SIG organiser (206) 649-6489
- =========================================================================
- Date: Tue, 23 Aug 1994 15:39:09 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Cloney <muse@VIADOC.COM>
- Subject: Re: text processing engines
-
- >I want to do some serious text processing--namely, scripts to do reference
- >threaded digestification of mailing list mail. I'm considering BBEdit as
- >the engine, but I wondered if anyone had other suggestions?
-
- Check out Tcl (Tool Control Language, pronounced "tickle"), a very powerful
- environment for string and text manipulation that includes a regular
- expression parser (sort of grep with knobs on). It's essentially a 4GL
- optimized for string processing and found on UNIX and IBM systems, as well
- as Mac. Judging purely from USENET traffic, Tcl is currently the most
- popular string processing environment. You can do a lot besides string
- processing with it, too, and it's extensible in 3GLs like C.
-
- A Tcl engine is available embedded in Pete Keleher's excellent Alpha text
- processor (a bit like BBEdit, but with the considerable advantage of Tcl).
- Version 5.85 should now be at cs.rice.edu under public/Alpha. In addition
- to straight Tcl processing, you can put up decision and list dialogs and
- many other things. The integrated text editor makes for a great development
- environment. Support for Alpha has been excellent for several years --
- better than most commercial applications.
-
- Tim Endre's Tcl engine (which I believe is the one at the core of Alpha) is
- also embedded in the applications Tickle (currently, we've got Tickle
- 5.0v1) and Transit, which can produce droplets. Check out the
- pub/vendor/ice directory on ftp.msen.com.
-
- All three of these applications are AppleScriptable to some extent (at
- least to the extent of being able to be told what Tcl script to execute, or
- to generate AppleEvents themselves). We've found that AppleScript,
- QuicKeys, and the Tcl apps provide a very powerful "glue" system for
- working with text.
-
- An example of a parsing application similar to your proposed mail system is
- the image processing part of our database publishing system. We use Tcl, in
- the form of the Alpha editor, to analyse EPS image files -- extracting
- information about file image dimensions, pixel depth, date, and so on from
- the PostScript, doing a bit of figuring, and appending the results as a
- tab-delimited record for import to ORACLE or 4thDimension. It's quite
- similar to processing mail headers.
-
- Another scriptable text parser is MacPerl, which embeds the Perl parser
- popular on UNIX systems. O'Reilly & Associates has several books on Perl.
- We're using version 4.1.2. There should be a copy floating around in the
- /software/mac directory on nic.switch.ch.
-
- You might also consider the new (and controversial) object-oriented string
- processing language Python. Check out comp.lang.python and the ftp site
- ftp.cwi.nl.
-
- The Icon language is reputed to be good for string processing. I haven't
- used it in years, so my memory isn't very good about it. A Mac version is
- ftp-able somewhere.
-
- If your application leans more toward complex decision making, rather than
- straightforward parsing, you might consider one of the Scheme variants,
- such as Gambit Scheme. This gives you the advantage of programming in a
- high-level language (essentially a Lisp variant) -- and you could apply
- typical AI algorithms. I don't know if the latest versions support
- AppleEvents. You could also use the full-bore CLOS, but that's a lot of
- overhead for a simple parser.
-
- An (expensive) option would be Prograph CPX, a high-level visual
- object-oriented development environment. The built-in string processing
- stuff isn't very robust, but it's extensible in either Prograph or a 3GL
- like C, and the debugging facilities are beyond compare. It has an
- interpreter and a compiler that can generate stand-alone double-clickable
- apps. It can send and receive AppleEvents. Windows and UNIX versions are
- planned. It'll set you back around $1500, sigh.
-
- Finally, you might snoop around for regular expression processing modules
- for Think C, CodeWarrior, or MPW C. The programming environment is
- considerably lower-level than any of the options above, but performance
- would be very good. MPW has some parsing features of its own. You could
- probably arrange to use Tim Endre's Tcl engine in your own application.
-
- The idea in pretty much all of these cases is to use somebody else's
- regular expression parser, rather than re-inventing grep/awk etc.
-
- -- Tom
-
- -------------------------------
- Tom Cloney
- Viadoc
- muse@viadoc.com muse@csn.org (303) 449-9993 Fax: (303) 546-6349
-
- You'll have to have it all pulled out after the Savoy Truffle.
- ================
- =========================================================================
- Date: Tue, 23 Aug 1994 14:41:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Speck <speck@INTERVAL.COM>
- Subject: Hwo to: find container
-
- I'm sissing documentation, so please help me.
-
- If I do:
- set myRef to a reference to character 1 of word 1 of window 1
- then I get
- character 1 of word 1 of window 1 of application "ScriptAble..."
-
- I would like to back up, that is, get the container of this character, so I
- have just:
- word 1 of window 1 of application "ScriptAble..."
-
- What is the expression for this?
-
-
- I have a system where (generic) objects can be container in other objects
- (of the same type). It is somewhat MUD like.
- What is the expression for moving an object into another object,
- e.g. move physobject "Pretender" into physobject "The hall"????
-
- I can get this to work with the PowerPlant framework.
-
- ---
- Peter Speck
- (And it was eleven o'clock
- which was time for a little something)
- =========================================================================
- Date: Tue, 23 Aug 1994 17:35:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
- Subject: Re: What is the gaea ftp site again?
- In-Reply-To: <199408211925.AA23353@freenet2.scri.fsu.edu>
-
- On Sun, 21 Aug 1994, anthony brown wrote:
-
- > What is the of the gaea ftp site, either with the pathname or the ip address?
- >
- > I erased the message with the site name by accident
- >
- > Anthony
- >
-
- gaea.kgs.ukans.edu
-
- -AbbyD
- =========================================================================
- Date: Tue, 23 Aug 1994 22:45:17 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Esther <chris@RELEASE.DEMON.CO.UK>
- Subject: Re: Sybase OSAX?
-
- >Has anyone seen/written an OSAX that allows SQL queries? Or, not quite as
- >elegantly, is there any way to use the Hypercard XFCN directly in an
- >AppleScript? My current kludge is to send a script from FMPro telling
- >Hypercard to get the data and put it in the appropriate fields.
-
- There's a couple of products that fit the bill, DataScript -
- which is a AppleScript bridge application for retrieving data
- from SQL based database systems. $249 for the Sybase version available from
- APDA (716) 871 6555 or direct from the publishers General Knowledge in the
- UK on +44 (0)202 746 026.
-
- The Database Scripting Kit is an OSAX, available from Graphical
- Business Interfaces (219) 253-8623, AppleLink D2193 who have some
- interesting sounding
- AOCE/Database products on the horizon. It, like DataScript, supports a
- number of DBMS -
- but I'm not sure whether it supports Sybase directly. DataScript sells on a
- system basis whilst I think GBI have just decided to sell the Database
- Scripting Kit as one product that will support all systems.
-
- Don't have any real experience of either and don't have current pricing
- for the OSAX solution, but hope this helps.
-
-
- Chris Esther
- Release Commuinications
- London, UK
- =========================================================================
- Date: Tue, 23 Aug 1994 15:18:11 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <xenolith@HALCYON.COM>
- Subject: Re: Attachability & Tinkerability...
-
- >In Regards to your letter <199408230526.AA25397@exnet.com>:
- >>
- >> Where can I find information about the above topics and how to implement them
- >> in an application?
- >>
- >
- >"Inside Macintosh:Interapplication Communication" gives some but not
- >all of the story. Check out issues #18 and #19 of Apple's "develop"
- >magazine for a couple of articles with sample code. Also, if you know
- >someone who has tapes of this year's WWDC, take a look at Lee Buck's
- >talk on the same subject (was on day 1 of the conference).
- >
- >
- >best regards, Paul
-
- Paul's article (he was pretty cunning about not mentioning that!) in
- Develop 18 is pretty good. I haven't seen the article in issue 19 (is
- Develop 19 out yet?).
-
- Regarding the WWDC talk. I checked my notes: wasn't this talk on Tuesday,
- May 17th: AppleScript Current and Futures.
-
- Generally you move into the twilight zone when you attempt this cool stuff.
-
- It seem that not even Apple has tried this stuff. I'm sure that fame and
- fortune awaits the people who do this right. Or it may go over everyones
- head,
-
- My bet is that people doing "vertical market" apps (that have to be a
- little customizable) have the best chances of making tinkerable apps that
- will work in a real environment. You need a target application that needs
- to be mallable (so you would want to change it) but which requires being
- coded as an app (rather than a script or a stack or whatever). If anyone
- has any ideas what these apps might be I'd like to hear about them. I think
- multimedia and games may fall into this category ...
-
- Kevin Purcell, N7WIM / G8UDP xenolith@halcyon.com
- Seattle dBug Mac Developers SIG organiser (206) 649-6489
- =========================================================================
- Date: Tue, 23 Aug 1994 15:37:03 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Script AOL? (Was-Re: Online&Shutdown)
-
- >I can't speak for AOL but as for timed shutdowns etc you should give "Cron"
- >a test drive. (Information at the end of this post.) This could arguably be
- >the best addon for the Mac I have ever located :-)
- >
- I also just found a similar program called Chronograph up on AOL
- last night. It offers similar features to Cron, though is a bit more
- updated. I will try to send it off to gaea later.
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Wed, 24 Aug 1994 10:52:20 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: text processing engines
-
- >>I want to do some serious text processing--namely, scripts to do reference
- >>threaded digestification of mailing list mail. I'm considering BBEdit as
- >>the engine, but I wondered if anyone had other suggestions?
- >
- As an addition to Tom Cloney's excellent list of suggestions, perhaps you
- should have a look at Nisus; as well as being a good WP it's got a good
- macro language with grep capabilities. The version with AppleScript support
- (NisusWriter) is currently in beta.
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Wed, 24 Aug 1994 12:31:03 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: Sybase OSAX?
-
- >The Database Scripting Kit is an OSAX, available from Graphical
- >Business Interfaces (219) 253-8623, AppleLink D2193 who have some
- >interesting sounding
-
- Beware of GBI (if it's the same one; Steve Mansfield is the name); I bought
- a 4D external package off him. Zero support, and asking for the money-back
- guarantee has produced nothing to date.
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Tue, 23 Aug 1994 18:57:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript Objects
-
- >>Maybe I should play with AS objects some more...
- >>
- >>Derrick
- >
- >You should -- they're the most fun things in AS.
- >
- >Shame they didn't include elements. You'd be able to build full grown
- >scriptable apps in AS.
- >
- >Maybe in AS 2.0
- >
- >Have fun!
- >
-
- Actually, there is the little osax on gaea (sorry, name forgotten) which
- uses the PowerTalk Catalog Manager to run a little database. The
- Collection Manager of QuickDraw GX could be similarly (and more usefully to
- me, since I see no use here in PowerTalk) be "drafted" to the task of
- holding elements.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Tue, 23 Aug 1994 19:05:07 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: FMPro Field listing?
- In-Reply-To: <199408230439.VAA14122@mail.netcom.com> from "Joel Smith" at Aug
- 22, 94 11:41:04 pm
-
- >
- > How can I get a complete field list for any particular database. All I can
- > get at this point is a list of the fields on the active layout. Am I missing
- > something really obvious? This should be simple, but I've tried several
- > things and nothing so far. Is this a FileMaker Pro feature?
- >
- > I can get the number of fields in a database, but I can only get a list of
- > field names for the current layout. I can only get names by number for those
- > fields on the layout (or so it seems). Any suggestions? Something more
- > elegant than looping through all layouts would be good. Thanks
- >
- > Joel Smith
- >
-
- Use layout 0, which always contains all the fields in the database:
-
- tell application "FileMaker Pro"
- the Name of every Field of Layout 0
- end tell
-
- Steve
- =========================================================================
- Date: Wed, 24 Aug 1994 14:04:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AppleScript Objects
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >Actually, there is the little osax on gaea (sorry, name forgotten) which
- >uses the PowerTalk Catalog Manager to run a little database. The
- >Collection Manager of QuickDraw GX could be similarly (and more usefully to
- >me, since I see no use here in PowerTalk) be "drafted" to the task of
- >holding elements.
-
- Yes, but the Collection Manager doesn't provide persistence: you'd have to
- flatten the collection to disk and unflatten it back into RAM again later as
- separate steps. AOCE catalogs give you persistence automatically. PowerShare
- catalogs even give you multi-user access and access control.
-
- And don't forget the ability to browse data from the Finder...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Tue, 23 Aug 1994 23:59:14 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: Re: Wanted: CTB osax
-
- >daver@netcom.com wrote:
- >>Here is my 'wish list' if anyone is going to write such as OSAX:
- >>
- >>- Should have capability of "wait for string" and "send string", like ZTerm
- >>and Microphone.
- >>
- >>- Should have capability of putting received data into a variable, like the
- >>TCP/IP OSAX can do. This allows you to write if/then statements about what
- >>to do depending on the data sent.
- >>
- >
- >This would indeed be very nice, and is a thing that has annoyed me about
- >SITcomm, which allows you to "wait for text", but only if you know what to
- >wait for!
- >
- Yes! Now I know I am not alone in this. I have much use for that function in
- SITcomm, and have voiced this to the authors before. I am curious as to how
- great of a ned this is? Is this something that Dave and I want, or is the
- demand great enough to merit a change in the next upgrade of SITcomm?
-
- Thanks in Advance, and
- Regards,
- Jay Hebert
- jayh@laison.w8hd.org
- --
-
- ==========================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Tue, 23 Aug 1994 22:26:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript Objects
-
- >"John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
- >
- >>Actually, there is the little osax on gaea (sorry, name forgotten) which
- >>uses the PowerTalk Catalog Manager to run a little database. The
- >>Collection Manager of QuickDraw GX could be similarly (and more usefully to
- >>me, since I see no use here in PowerTalk) be "drafted" to the task of
- >>holding elements.
- >
- >Yes, but the Collection Manager doesn't provide persistence: you'd have to
- >flatten the collection to disk and unflatten it back into RAM again later as
- >separate steps. AOCE catalogs give you persistence automatically. PowerShare
- >catalogs even give you multi-user access and access control.
- >
- >And don't forget the ability to browse data from the Finder...
-
- All that is fine...so long as my vast network consists of 2 machines,
- within arm's length, both with me as the only user, and incredibly poor US
- West performance in (206)437 makes automated dialing or answering
- impossible, PowerTalk won't be installed on my machines. I don't think I'm
- the only one who is going to not install PowerTalk.
-
- Actually, I don't need the capability, since I (a) have Frontier running
- (and hence its database on-line), and (b) Frontier gives me access to uBASE
- for things which shouldn't take up room in Frontier's db.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Wed, 24 Aug 1994 00:48:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Attachability & Tinkerability...
-
- Kevin Purcell <xenolith@HALCYON.COM> wrote:
- >
- >>> Where can I find information about the above topics and how to implement
- >>> them in an application?
-
- [snip!]
-
- >Generally you move into the twilight zone when you attempt this cool stuff.
- >
- >It seem that not even Apple has tried this stuff. I'm sure that fame and
- >fortune awaits the people who do this right. Or it may go over everyones
- >head,
- >
- >My bet is that people doing "vertical market" apps (that have to be a
- >little customizable) have the best chances of making tinkerable apps that
- >will work in a real environment. You need a target application that needs
- >to be mallable (so you would want to change it) but which requires being
- >coded as an app (rather than a script or a stack or whatever). If anyone
- >has any ideas what these apps might be I'd like to hear about them. I think
- >multimedia and games may fall into this category ...
-
- I don't know about all the possible apps, but Apple has already done one of
- the Mac's most attachable and tinkerable apps, Hypercard. So it would seem
- that Apple _has_ tried this stuff, but perhaps it already went over
- people's heads. ;)
-
- Personally, this is my vision of the future. Being a nerd, I scope out the
- consoles on Star Trek and imagine how they must be programmed to work. It
- would seem that they are/would be completely programmable so that you can
- make your own custom control system (although most people will use the
- standard templates that ship with the ship). It would be sort of like a
- snappy Hypercard interface to a complex mechanical system complete with
- intersteller ftp and a humongous database and memory storage. That's not
- including the Holodeck! ;)
-
- In some ways this could be similar to the World Wide Web (Universal Warp
- Web?). Imagine being able to pull up anyone's public Home page and simply
- copying some of their controls and buttons to your private collection. You
- can then layer your controls so that one button leads you to another
- collection of controls. This could be very similar to Hypercard's stack
- idea, although with more power and in color, of course. :) I think this
- sort of interface also will be the culmination of the current OOP efforts.
- Each of these buttons or widgets or whatever could be programs which would
- use either standard code or new custom code. You could pick up a piece of
- program and stuff it in another program while it is running. There are a
- lot of systems in place today that do a lot of this kind of stuff.
- Eventually we will have some kind of standardized computer systems that
- everyone can use and their interfaces will be completely tinkerable and
- attachable. Then we can carry around Newton pocket clipboards. ;)
-
- Of course, it might be some time before you can buy any of this, unless we
- get rid of money and it's all free. ;)
-
- Jon
-
- PS
-
- I want transporters to the ski resorts! Ski every mountain!
- =========================================================================
- Date: Wed, 24 Aug 1994 15:51:47 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
- Subject: Re: Sybase OSAX?
- In-Reply-To: <199408240629.OAA01637@gecko.DIALix.oz.au> from "Automatic digest
- processor" at Aug 24, 94 00:00:23 am
-
- I've used the DataScript gateway from General Knowledge against
- an Oracle database. In fact, I just reviewed it for MacNews. It works
- quite nicely. If you are familiar with AppleScript and SQL then you
- should have no problems. The tech support from the Australian distributor
- was also very good.
-
- You can reach General Knowledge via knowledgable@applelink.apple.com. They
- have a demo version available. The actual program is platform specific,
- so you would need the Sybase model as opposed to the Oracle or DAL models.
-
- Speed is probably the major issue. v2.0 is faster than 1.0 was, but it
- still needs a fairly hefty Mac to get good performance.
-
- Regards,
-
- Todd
- =========================================================================
- Date: Wed, 24 Aug 1994 22:43:26 +0930
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nick Hodge <nickh@RANDOMSA.COM.AU>
- Subject: Re(2): Attachability & Tinkerability...
-
- >Kevin Purcell <xenolith@HALCYON.COM> wrote:
-
- >>>> Where can I find information about the above topics and how to implement
- >>>> them in an application?
-
- >[snip!]
-
- >>Generally you move into the twilight zone when you attempt this cool stuff.
- >>
- >>It seem that not even Apple has tried this stuff. I'm sure that fame and
- >>fortune awaits the people who do this right. Or it may go over everyones
- >>head,
- >>
- >>My bet is that people doing "vertical market" apps (that have to be a
- >>little customizable) have the best chances of making tinkerable apps that
- >>will work in a real environment. You need a target application that needs
- >>to be mallable (so you would want to change it) but which requires being
- >>coded as an app (rather than a script or a stack or whatever). If anyone
- >>has any ideas what these apps might be I'd like to hear about them. I think
- >>multimedia and games may fall into this category ...
-
- >I don't know about all the possible apps, but Apple has already done one of
- >the Mac's most attachable and tinkerable apps, Hypercard. So it would seem
- >that Apple _has_ tried this stuff, but perhaps it already went over
- >people's heads. ;)
-
- I concur with Jon's sentiments about attachability/tinkerability for the
- "rocket scientist" users [and Star Trek visions: I want a holodeck in my
- house! 3D touch-n-feel VR :-) ]. I forsee the day when we
- consultants/developers can purchase apps/objects and build custom apps for
- customers. Sort of an OpenDoc-AppleScript Soup (woops! Newton term!)
-
- By the way, what every happened to Apple's Mother Of All Object-Oriented
- Development environment, SK8? (pronounced Skate!) The ATG team demoed it at
- the 1993 WWDC, but I've heard nothing since. Did it get the heave-ho in the
- Apple Summer'93 Reorg(TM)??
-
-
-
- --
- __________________________________________________________________________
- Nick Hodge = A proud caffiene enhanced lifeform
-
- Consulting Systems Engineer | nickh@randomsa.com.au
- ))/\ Random Access | AppleLink: AUST0370
- \\\\Adelaide, South Australia | CompuServe: 73320,667
- =========================================================================
- Date: Wed, 24 Aug 1994 08:42:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: AppleScript Objects
- In-Reply-To: Your message of "Tue, 23 Aug 94 22:26:19 PDT"
-
- [much snipped]
- >>Yes, but the Collection Manager doesn't provide persistence: you'd have to
- >>flatten the collection to disk and unflatten it back into RAM again later as
- >>separate steps. AOCE catalogs give you persistence automatically. PowerShare
- >>catalogs even give you multi-user access and access control.
- >>
- >>And don't forget the ability to browse data from the Finder...
-
- >All that is fine...so long as my vast network consists of 2 machines,
- >within arm's length, both with me as the only user, and incredibly poor US
- >West performance in (206)437 makes automated dialing or answering
- >impossible, PowerTalk won't be installed on my machines. I don't think I'm
- >the only one who is going to not install PowerTalk.
- >
- >Actually, I don't need the capability, since I (a) have Frontier running
- >(and hence its database on-line), and (b) Frontier gives me access to uBASE
- >for things which shouldn't take up room in Frontier's db.
-
- Well, ScriptBase from Main Event (I hear rumors that it's shipping, but I
- don't know for sure) provides you with a database capability for AppleScript
- where you can store scripts, objects, and other odds and ends. If I can get
- any additional information, I'll pass it along.
-
- pf
- =========================================================================
- Date: Wed, 24 Aug 1994 11:14:15 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMPro Field listing?
-
- >How can I get a complete field list for any particular database. All I can
- >get at this point is a list of the fields on the active layout. Am I missing
- >something really obvious? This should be simple, but I've tried several
- >things and nothing so far. Is this a FileMaker Pro feature?
- >
- >I can get the number of fields in a database, but I can only get a list of
- >field names for the current layout. I can only get names by number for those
- >fields on the layout (or so it seems). Any suggestions? Something more
- >elegant than looping through all layouts would be good. Thanks
- >
- >Joel Smith
-
-
- This ain't obvious - I dug this out of one of the FM help gurus: there is a
- magic layout in Filemaker called Layout 0. It is invisible and contains
- every field in the database and is dynamically updated when you add a field
- to your database. So if you always specify layout 0 you will know you are
- working with every field.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Wed, 24 Aug 1994 10:47:21 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: class 'event'
-
- What exactly is the class 'event' used for?
-
- Does anyone have a real, honest, theory-laden language spec for AppleScript?
-
- The docs just aren't answering my questions. :-(
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Wed, 24 Aug 1994 08:36:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AppleScript Objects
- In-Reply-To: <199408240801.BAA14101@mail.netcom.com>
-
- On Tue, 23 Aug 1994, John W. Baxter wrote:
-
- > >"John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
- > >Yes, but the Collection Manager doesn't provide persistence: you'd have to
- > >flatten the collection to disk and unflatten it back into RAM again later as
- > >separate steps. AOCE catalogs give you persistence automatically. PowerShare
- > >catalogs even give you multi-user access and access control.
-
- And if one needs a persistent database for AppleScript, I reccommend
- ScriptBase, a great little utility from Main Event. It's a scripting
- addition/database which provides the same functionality as Frontier's
- Object Database for AppleScript. It's pretty slick.
-
- Main Event's number is 202 298 9595
-
- Derrick
- =========================================================================
- Date: Wed, 24 Aug 1994 08:51:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript Objects
-
- At 08:36 8/24/94 -0700, Derrick Schneider wrote:
- >On Tue, 23 Aug 1994, John W. Baxter wrote:
- >
- >> >"John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
- >> >Yes, but the Collection Manager doesn't provide persistence: you'd have to
- >> >flatten the collection to disk and unflatten it back into RAM again later as
- >> >separate steps. AOCE catalogs give you persistence automatically. PowerShare
- >> >catalogs even give you multi-user access and access control.
- >
- >And if one needs a persistent database for AppleScript, I reccommend
- >ScriptBase, a great little utility from Main Event. It's a scripting
- >addition/database which provides the same functionality as Frontier's
- >Object Database for AppleScript. It's pretty slick.
- >
- >Main Event's number is 202 298 9595
-
- Thanks, Derrick. You reminded me that Frontier Runtime also provides the
- same functionality as Frontier's object database, for AppleScript. $35
- shareware after 30 day test. Downloadable from the gaea site:
-
- ftp://gaea.kgs.ukans.edu:frontier/FromUserland/runtime303.sea.hqx
-
- Online documentation kit in
-
- ftp://gaea.kgs.ukans.edu:frontier/FromUserland/DocServer_for_Runtime.sit.hqx
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Wed, 24 Aug 1994 09:11:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Finder Reference versus Alias Reference
-
- --part_AA80BF550054715100000004
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- I've run into a problem with a script that I'm writing.
-
- If I run the script, I search a folder using the scriptable Finder and I get a
- reference back to specific items in the folder of the form:
-
- file "foo" of folder "bar" of startup disk
-
- The rest of the script is spent compressing and archiving the file, connecting
- to a FirstClass board with SITcomm, and transfering the compressed file back
- to a central location.
-
- I would also like to send files by just dropping them on the script but I'm
- having problems with the way these files are referenced. It seems there:
-
- alias "MacintoshHD:bar:foo"
-
- Is there a way for me to convert this type of reference to the type that the
- scriptable finder uses? It seems that everything I try doesn't work.
-
- Please send responses to me directly or via cc since I get the list digested.
-
- Thanks a lot!
-
- Greg Francis
-
- --part_AA80BF550054715100000004
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- --------------------------------------------------------------------------
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- --part_AA80BF550054715100000004--
- =========================================================================
- Date: Wed, 24 Aug 1994 11:20:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Run Script and self-modifying code!
-
- Its almost dangerous the things you can pick up just scanning this digest!
-
- The care and feeding of 50 some co-workers using Mac's can sometimes be
- painful, especially since some of them should only be using a pencil because
- a ballpoint pen is a little too complicated for them! (I hope people aren't
- still using the sales pitch that "anyone" can use a Mac). But we work with
- them (I am exaggerating about our users!) and try to make things as simple as
- possible. Playing with AppleScript over the last six months or so we've
- implemented a couple of script-based helpers (copy documents to a server with
- a drop script - putting them in the right place based on their contents,
- generating form letters, return receipts for PowerTalk mail, and other stuff
- like that). I've though about putting a stay running application on every
- machine that would help us monitor and solve problems. Something comes up
- about once a week that is a candidate for the monitor application - but
- that's the problem - it would be a configuration management nightmare, adding
- new things to the script, distributing the scripts, etc., etc.
-
- I guess I missed the "run script" command until it showed up on the digest.
- Having played with about every language from Ada to 6502 assembly, I kind of
- though that AppleScript was a fairly structured and somewhat strongly typed
- language - and that it would not have things like "self-modifying code".
- Having spend too many hours with the dBase language in some past existence, I
- seemed to recall something called "macro substitution". You put a ampersand
- (&) before the variable name and it executed the command stored in the
- variable. Neat stuff, but highly unstructured. Guess what "run script" is?
-
- For instance, create a stay running script application "foo" that consists
- of:
-
- on doFinderCommand(theCommand)
- tell application "Finder"
- set theResult to run script theCommand
- end tell
- return theResult
- end finderCommand
-
- Now from another machine
-
- tell application "foo" of machine "bar" of zone "x" to
- doFinderCommand("restart")
-
- I don't thing this is what they had in mind, but we all knew we could do it.
- "Run Script" does provide a way of doing useful things like:
-
- "User 12" complains: "My mail isn't working!!!"
-
- tell application "foo" of machine "user 12" of zone "complainers"
- doFinderCommand( "count item of item "Mailbox Problems" of item "user 12")
- end tell
-
- If it returns something other than a 0, there is a PowerTalk mail problem
- that needs to be resolved. I know that this may be a little complex example
- by using PowerTalk, but I am sure everyone can thing of a couple of things
- you might want to get from a user's machine. Another example to help the
- though process would be to solve a PrintMonitor" problem, you might want to
- check the version?
-
- "version of information window of application file "PrintMonitor" of
- extensions folder"
-
- The scriptable finder is neat, might even have to get the book some day
- (anyone know the ISBN number?). Run Script gives you some flexibility that
- may make its way into a couple of our scripts and possibly yours.
-
-
- Steve Alex
- steve_alex@aidt.edu
- Alabama Industrial Development Training
- =========================================================================
- Date: Wed, 24 Aug 1994 09:24:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: class 'event'
-
- >What exactly is the class 'event' used for?
- >
- >Does anyone have a real, honest, theory-laden language spec for AppleScript?
- >
- >The docs just aren't answering my questions. :-(
- >
- >~ Kiran
- >
- >--
- >6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
-
- One thing you may want to invest in is a copy of Inside Mac:
- Interapplication Communication, which has a lot of details (but is not
- complete).
-
- I found this gave me a better view of scripting as it fits into the system
- (and of course as to how to actually implement it).
-
- Kevin Purcell kevinpu@atm.com
- Attachmate Corp (206) 649-6489
- =========================================================================
- Date: Wed, 24 Aug 1994 11:31:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: class 'event'
- In-Reply-To: Your message of "Wed, 24 Aug 94 10:47:21 EDT"
-
- Kiran sez...
-
- >What exactly is the class 'event' used for?
- >
- >Does anyone have a real, honest, theory-laden language spec for AppleScript?
- >
- >The docs just aren't answering my questions. :-(
-
- Don't know if this will completely help you, but you might want to take a look
- at the Apple Event Registry (available in paper from APDA or on develop and
- Developer CD ROMs) and the Inside Mac Interapplication Communication volume.
-
- I'm sure others will chime in.
-
- pf
- =========================================================================
- Date: Wed, 24 Aug 1994 09:58:25 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Finder Reference versus Alias Reference
-
- At 09:11 8/24/94 -0800, Greg Francis wrote:
- >I've run into a problem with a script that I'm writing.
- >
- >If I run the script, I search a folder using the scriptable Finder and I get a
- >reference back to specific items in the folder of the form:
- >
- > file "foo" of folder "bar" of startup disk
- >
- >The rest of the script is spent compressing and archiving the file, connecting
- >to a FirstClass board with SITcomm, and transfering the compressed file back
- >to a central location.
- >
- >I would also like to send files by just dropping them on the script but I'm
- >having problems with the way these files are referenced. It seems there:
- >
- > alias "MacintoshHD:bar:foo"
- >
- >Is there a way for me to convert this type of reference to the type that the
- >scriptable finder uses? It seems that everything I try doesn't work.
-
- This snippet will point the way (it also shows how to get the selected
- items as strings). It assumes AppleScript 1.1 (and Scriptable Finder).
-
- tell application "Finder"
- set foo to selection
- set bar to {}
- set baz to {}
- repeat with x in foo
- set end of bar to x as string
- set end of baz to x as alias
- end repeat
- end tell
- {foo, bar, baz}
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Wed, 24 Aug 1994 19:20:36 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
- Subject: Cumulus PowerPro anyone?
-
- Has anybody else played around with Cululus PowerPro's AS interface?
-
- I am trying to get the DB engine to serve me the name/number of a row
- that I can match by one column. The documentation that came with the
- upgrade disk gives an example like:
-
- set found to every row where value of cell "foo" = "bar"
-
- - only it just doesn't work ;-( I'm quite sure my adressing is right
- since I can fx. read cell "foo" of any row that I can name.
-
- The directory of CPP lists various commands of a 'Database Suite' -
- but I can't find any examples/documentation for that. Can anybody out
- there enlighten me?
-
- Thanks for the help!
-
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- ---
- This product has been cruelly tested on cute little furry animals.
- =========================================================================
- Date: Wed, 24 Aug 1994 11:19:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Terry Forrester <terryf@VEGA.LPL.ARIZONA.EDU>
- Subject: Re: Attachability & Tinkerability...
-
- Jon Pugh <jonpugh@netcom.com> wrote:
-
- > In some ways this could be similar to the World Wide Web (Universal Warp
- > Web?). Imagine being able to pull up anyone's public Home page and simply
- > copying some of their controls and buttons to your private collection. You
- > can then layer your controls so that one button leads you to another
- > collection of controls. This could be very similar to Hypercard's stack
- > idea, although with more power and in color, of course. :) I think this
- > sort of interface also will be the culmination of the current OOP efforts.
- > Each of these buttons or widgets or whatever could be programs which would
- > use either standard code or new custom code. You could pick up a piece of
- > program and stuff it in another program while it is running. There are a
- > lot of systems in place today that do a lot of this kind of stuff.
- > Eventually we will have some kind of standardized computer systems that
- > everyone can use and their interfaces will be completely tinkerable and
- > attachable. Then we can carry around Newton pocket clipboards. ;)
- > I want transporters to the ski resorts! Ski every mountain!
- >
-
- The latest version of the interface design and app building tools from
- FaceWare, (was ViewIt, now called DynaFace) can do much of this sort of thing
- now. You can attach AppleScript scripts or high-level program code to
- buttons, menu items, etc. New buttons and scripts can be added while your
- program is running, so you can do quite a bit without ever having to go back
- and recompile your application. There is a simple script editor that can
- compile/decompile scripts, and save them in 'scpt' resources. For more
- info, you could contact FaceWare at (217)-328-5842, or e-mail to
- faceware@aol.com.
-
- --
- /* Terry Forrester terryf@arizona.edu */
- /* Lunar and Planetary Laboratory (602)-621-4539 */
- /* University of Arizona Tucson, AZ 85721 */
- =========================================================================
- Date: Thu, 25 Aug 1994 09:06:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Finder Reference versus Alias Reference
-
- Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
-
- >I've run into a problem with a script that I'm writing.
- >
- >If I run the script, I search a folder using the scriptable Finder and I get a
- >reference back to specific items in the folder of the form:
- >
- > file "foo" of folder "bar" of startup disk
- >
- >The rest of the script is spent compressing and archiving the file, connecting
- >to a FirstClass board with SITcomm, and transfering the compressed file back
- >to a central location.
- >
- >I would also like to send files by just dropping them on the script but I'm
- >having problems with the way these files are referenced. It seems there:
- >
- > alias "MacintoshHD:bar:foo"
- >
- >Is there a way for me to convert this type of reference to the type that the
- >scriptable finder uses? It seems that everything I try doesn't work.
-
- It appears you don't need to--the Finder will happily accept either form.
- For example, I tried this script:
-
- tell application "Finder"
- every file of alias "Mhacking Tosh II:Documents:"
- end tell
-
- and I got back a list of all the files in that folder, as a list of object
- references of the form 'file "xxx" of folder "Documents" of disk
- "Mhacking Tosh II"'.
-
- As for converting the other way, that's easy: just cast the object reference
- "as alias".
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 25 Aug 1994 09:28:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Run Script and self-modifying code!
-
- Steve Alex <steve_alex@AIDT.EDU> writes:
-
- >For instance, create a stay running script application "foo" that consists
- >of:
- >
- >on doFinderCommand(theCommand)
- > tell application "Finder"
- > set theResult to run script theCommand
- > end tell
- > return theResult
- >end finderCommand
- >
- >Now from another machine
- >
- >tell application "foo" of machine "bar" of zone "x" to
- >doFinderCommand("restart")
- >
- >I don't thing this is what they had in mind, but we all knew we could do it.
- >"Run Script" does provide a way of doing useful things like:
- >
- >"User 12" complains: "My mail isn't working!!!"
- >
- >tell application "foo" of machine "user 12" of zone "complainers"
- > doFinderCommand( "count item of item "Mailbox Problems" of item "user 12")
- >end tell
-
- Yup, this is all cool stuff. However, it might be quicker to send an
- already-compiled script over the network, rather than script source. There
- is also the idea that your scripts should be independent of "dialect" (ie
- "human language"). For example, the above example could fail if the target
- machine were running the French or Japanese version of AppleScript, whereas
- sending a compiled script would still work.
-
- I created a simple stay-open applet called "Doer", the script of which consists
- of just the following:
-
- on Do(thingy)
- run thingy
- end Do
-
- I started this up on our server, and from my machine I ran the script
-
- script x
- tell application "Finder"
- every disk
- end tell
- end script
- tell application "Doer" of machine "Vice"
- Do(x)
- end tell
-
- and sure enough, I got a list of every disk on the server.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 24 Aug 1994 14:49:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Finder Reference versus Alias Reference
-
- >Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
- [files and alias stuff deleted]
- >>Is there a way for me to convert this type of reference to the type that the
- >>scriptable finder uses? It seems that everything I try doesn't work.
- >
- >It appears you don't need to--the Finder will happily accept either form.
- >For example, I tried this script:
- >
- > tell application "Finder"
- > every file of alias "Mhacking Tosh II:Documents:"
- > end tell
-
- >and I got back a list of all the files in that folder, as a list of object
- >references of the form 'file "xxx" of folder "Documents" of disk
- >"Mhacking Tosh II"'.
-
- This will only work if "Mhacking Tosh II:Documents:" already exists on the
- machine compiling the script.
-
- On the other hand,
-
- tell application "Finder"
- every file of file "Mhacking Tosh II:Documents:"
- end tell
-
- will compile but will give a run time error on my machine (because the mac
- can't find the disk "Mhacking Tosh II:"
-
- >As for converting the other way, that's easy: just cast the object reference
- >"as alias".
-
- For example,
-
- tell application "Finder"
- every file of (file "Mhacking Tosh II:Documents:" as alias)
- end tell
-
- This too compiles but has a run time error for the same reason as before.
-
- This is dealt with in the AppleScript Language guide, p144 (I just
- horrified myself by remebering that page number off the top of my head :-).
-
- To sum up: the difference between an alias and a file is when you compile a
- script containing an immediate form of an alias the compiler checks to see
- if the alias is valid when compiling the script. This is not the case for a
- file reference.
-
- An almost typo free post from
-
- Kevin Purcell kevinpu@atm.com
- Attachmate Corp (206) 649-6489
- =========================================================================
- Date: Wed, 24 Aug 1994 15:17:30 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Run Script and self-modifying code!
-
- Lawrence D'Oliveiro says:
- >Yup, this is all cool stuff. However, it might be quicker to send an
- >already-compiled script over the network, rather than script source. There
- >is also the idea that your scripts should be independent of "dialect" (ie
- >"human language"). For example, the above example could fail if the target
- >machine were running the French or Japanese version of AppleScript, whereas
- >sending a compiled script would still work.
-
- The problem here would be if you compiled the script with a later version
- AS than the receiver has. It would have been nice if they defined true
- supersets to avoid this problem. Is nothing transparent!
-
- I think you pays yer money and you taker yer choice
-
- Kevin Purcell kevinpu@atm.com
- Attachmate Corp (206) 649-6489
- =========================================================================
- Date: Thu, 25 Aug 1994 10:47:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Finder Reference versus Alias Reference
-
- Kevin Purcell <kevinpu@ATM.COM> writes:
-
- >To sum up: the difference between an alias and a file is when you compile a
- >script containing an immediate form of an alias the compiler checks to see
- >if the alias is valid when compiling the script. This is not the case for a
- >file reference.
-
- You're right, but you can get around this. For example
-
- alias "j"
-
- will not compile on my machine, since file "j" doesn't exist. But
-
- set f to "j"
- alias f
-
- will compile, as will
-
- alias ("j" & "")
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 24 Aug 1994 16:13:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Finder Reference versus Alias Reference
-
- >Kevin Purcell <kevinpu@ATM.COM> writes:
- >
- >>To sum up: the difference between an alias and a file is when you compile a
- >>script containing an immediate form of an alias the compiler checks to see
- >>if the alias is valid when compiling the script. This is not the case for a
- >>file reference.
- >
- >You're right, but you can get around this. For example
- >
- > alias "j"
- >
- >will not compile on my machine, since file "j" doesn't exist. But
- >
- > set f to "j"
- > alias f
- >
- >will compile, as will
- >
- > alias ("j" & "")
-
- The important bit is an immediate form (I dunno what the correct term is
- for this). Anything that requires evaluation will get by the compiler.
-
- Kevin Purcell, N7WIM / G8UDP xenolith@halcyon.com
- Seattle dBug Mac Developers SIG organiser 206/649-6489
- =========================================================================
- Date: Wed, 24 Aug 1994 19:13:45 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Finder Reference versus Alias Reference
-
- >Is there a way for me to convert this type of reference to the type that the
- >scriptable finder uses?
-
- I answered Greg by mail as well, but this is something everyone may be
- interested in seeing. If you can't predict ahead of time what kind of object
- will be dropped into a script, the safest method is to convert the alias
- references to Finder item class objects. An item is the most senior object
- in the Finder's hierarchy for things we see in Finder windows (files,
- folders, disks). Anything called an item and bearing a pathname will be
- accepted as parameters to Finder scripting commands.
-
- Here's an example of how to coerce an alias (which comes back from the choose
- file command) to an item class object:
-
- tell application "Finder"
- set myItem to a reference to item ((choose file) as string)
- end tell
-
- Like lots of stuff in AppleScript, I learned this the hard way, and
- incorporated the results into Script-a-File (the August utility from
- ZiffNet/Mac).
-
- Danny Goodman
- =========================================================================
- Date: Thu, 25 Aug 1994 11:40:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Finder Reference versus Alias Reference
-
- Danny Goodman <DGoodman@AOL.COM> writes:
-
- >An item is the most senior object
- >in the Finder's hierarchy for things we see in Finder windows (files,
- >folders, disks). Anything called an item and bearing a pathname will be
- >accepted as parameters to Finder scripting commands.
- >
- >Here's an example of how to coerce an alias (which comes back from the choose
- >file command) to an item class object:
- >
- >tell application "Finder"
- > set myItem to a reference to item ((choose file) as string)
- >end tell
-
- Interesting. I get back something like
-
- item "Mhacking Tosh II:Documents:Cisco AT configs temp" of
- application "Finder"
-
- By the way, the basic AppleScript "file" and "alias" prefixes work with folders
- and disks, too:
-
- info for file "Mhacking Tosh II:Documents"
-
- (trailing colon optional) returns information for the "Documents" folder on
- my hard disk, while
-
- info for file "Mhacking Tosh II:"
-
- returns information about the hard disk itself.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 25 Aug 1994 11:48:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Sound Input Control osax
-
- This one is for CD lovers with CD-ROM-equipped Macs. Specifically, it's for
- those with Macs where they find themselves continually switching the sound
- input source between the microphone (or external audio) and CD audio. It's
- an osax that will do the switching without a trip to the Sound control panel.
- I've also included a couple of sample applets that you can use.
-
- I've just dropped it in the incoming folder on gaea.kgs.ukans.edu. Enjoy.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 24 Aug 1994 16:55:49 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Eric Gorr <ericg@CS.UOREGON.EDU>
- Subject: Developing the Aete resource
-
- I have a custom apple event and would like to develop an Aete resource
- for it so I can make it scriptable.
-
- All I have currently is the 'Aete Editor b3' hypercard stack & IM:IC.
-
- If anyone has any suggestions for things to get and/or would be willing to
- help me, I would apprecate it.
-
- thanx...
-
-
- ===Eric Gorr================ericg@cs.uoregon.edu===========aka MystryMan===
- _____
- |\ /| * Invincibility is in oneself, vulnerability is in the opponent
- | O | * Therefore the considerations of the intelligent always include both
- |/_\| benefit and harm (Sun Tzu)
-
- #include <standard.disclamer>
- =====Insults, like violence, are the last resort of the incompetent...=====
- =========================================================================
- Date: Wed, 24 Aug 1994 18:04:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Speck <speck@INTERVAL.COM>
- Subject: Re: Run Script and self-modifying code!
-
- >I created a simple stay-open applet called "Doer", the script of which cons=
- ists
- >of just the following:
-
- A little funny detail: Doer is the spelling of "D=F8r" when 8 bit characters
- are not available, and "D=F8r" is the Danish word for "Door".
-
-
- ---
- Peter Speck
- (And it was eleven o'clock
- which was time for a little something)
- =========================================================================
- Date: Thu, 25 Aug 1994 14:15:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Run Script and self-modifying code!
-
- Peter Speck <speck@INTERVAL.COM> observes:
-
- >>I created a simple stay-open applet called "Doer", the script of which cons=
- >ists
- >>of just the following:
- >
- >A little funny detail: Doer is the spelling of "D=F8r" when 8 bit characters
- >are not available, and "D=F8r" is the Danish word for "Door".
-
- And my "Doer" is, in fact, a door into the system, is it not?
-
- Lawrence "I'll stop now, I promise" D'Oliveiro
- =========================================================================
- Date: Thu, 25 Aug 1994 15:41:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Sound Input Control osax
-
- Ahem. In my excitement, I forgot to include an important component in the
- archive, namely the Sound Input Control osax itself!
-
- I just put a new archive in the incoming folder on gaea.kgs.ukans.edu.
- I hope not too many people are mad at me...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 24 Aug 1994 23:47:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Sound Input Control osax
- In-Reply-To: Your message of "Thu, 25 Aug 94 15:41:00 +1100"
-
- Lawrence said...
-
- >Ahem. In my excitement, I forgot to include an important component in the
- >archive, namely the Sound Input Control osax itself!
- >
- >I just put a new archive in the incoming folder on gaea.kgs.ukans.edu.
- >I hope not too many people are mad at me...
-
- Not to worry. I only moved it just a few moments ago. It can be found in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/SoundInputControl.hqx
-
- Have fun.
-
- pf
- =========================================================================
- Date: Thu, 25 Aug 1994 05:50:52 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <A5933643684@ATTPLS.NET>
- Subject: Re: Finder Reference
-
- :By the way, the basic AppleScript "file" and "alias" prefixes work
- with folders
- :and disks, too:
- :
- : info for file "Mhacking Tosh II:Documents"
- :
- :(trailing colon optional) returns information for the :"Documents"
- folder on
- :my hard disk, while
- :
- : info for file "Mhacking Tosh II:"
- :
- :returns information about the hard disk itself.
- :
-
- Yes, but you cannot use alias or file references for things like the
- Desktop Folder or Trash in scriptable Finder. But since both are
- descended from the Item class, you can use their pathnames with the
- item reference, as in:
-
- Item "Mac HD:Desktop Folder:"
-
- Danny Goodman
- =========================================================================
- Date: Thu, 25 Aug 1994 09:29:26 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John D. Griffin" <John.D.Griffin@DARTMOUTH.EDU>
- Subject: Re: MACSCRPT Digest - 23 Aug 1994 to 24 Aug 1994
-
- How do I remove myself from this distribution list?
- =========================================================================
- Date: Thu, 25 Aug 1994 10:43:10 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Couple of AS Questions
-
- I've got a couple of questions:
-
- 1) I'm thinking of writing a word game with AppleScript and I was hoping to use
- a dictionary of some type to randomly pick a word. Does anyone know of a
- scriptable dictionary or a text processor which will allow scripting of the
- dictionary's function? Or, does anyone know of any source I could use that is
- actually a deliminated list of words?
-
- 2) I'm trying to script FMPro (2.1v2) to update a database of mine which works
- fine if the database is the only document that FMPro has open. The database I'm
- trying to update sends a command (via FMPro script) to an external AppleScript
- script to gather information and update the database. However, if I have another
- document open, the script brings the first database to the front to continue
- with the update. How do I make my database update in the background, thus,
- allowing me to work with other FMPro documents. I did not use the activate
- command and I've address the document I'm working on via the tell statement.
- Actually, since I'm using FMPro script to invoke an AppleScript script, I need
- the document to be open so I didn't use the activate statement. If this doesn't
- make sense please e-mail me and let me have another chance of explaining.
-
- 3) Does anyone know what is promissed with System 7.5 CD in terms of
- AppleScript? (Supposedly the CD will have a lot more than the floppy version).
- What I'm wondering is will it include FaceSpan?
-
- Thanks,
-
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- =========================================================================
- Date: Thu, 25 Aug 1994 11:06:42 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: Re: Couple of AS Questions
- In-Reply-To: <9408251456.AA19558@coral.bucknell.edu>
-
- On Thu, 25 Aug 1994, Kim-son Tran wrote:
-
- > I've got a couple of questions:
- >
- > 1) I'm thinking of writing a word game with AppleScript and I was hoping to
- use
- > a dictionary of some type to randomly pick a word. Does anyone know of a
- > scriptable dictionary or a text processor which will allow scripting of the
- > dictionary's function? Or, does anyone know of any source I could use that is
- > actually a deliminated list of words?
- >
- Try Excalibur. I believe it's scriptable via TCL. (scripting addition
- available on gaea) Excalibur is on sumex-aim.stanford.edu,
- mac.archive.umich.edu, and if you can't find it there, email the author,
- zaccone@bucknell.edu.
-
- Later,
-
- Jeff Boulter
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
- =========================================================================
- Date: Thu, 25 Aug 1994 11:35:14 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Couple of AS Questions
- In-Reply-To: <no.id> from "Kim-son Tran" at Aug 25, 94 10:43:10 am
-
- --Kim-son Tran wrote:
- >
- >How do I make my database update in the background, thus, allowing me to
- >work with other FMPro documents.
-
- You don't. FileMaker Pro can only work with one active document at a
- time.
-
- >I did not use the activate command and I've address the document I'm
- >working on via the tell statement. Actually, since I'm using FMPro
- >script to invoke an AppleScript script, I need the document to be open
- >so I didn't use the activate statement. If this doesn't make sense
- >please e-mail me and let me have another chance of explaining.
-
- It doesn't matter that you didn't use the activate command. If you
- have a tell app "FileMaker Pro" control statement in an AppleScript
- script then FM Pro will be busy for as long as the script remains within
- that tell statement. This will hold true if you use a FM Pro script to
- call an external AppleScript script.
-
- >3) Does anyone know what is promissed with System 7.5 CD in terms of
- >AppleScript? (Supposedly the CD will have a lot more than the floppy version).
- >What I'm wondering is will it include FaceSpan?
-
- System 7.5 is supposed to come with AppleScript 1.1 and the Finder
- Scripting Extension (aka. the Scriptable Finder). I would also expect it
- to contain the Script Editor and the Scriptable Text Editor and the
- standard set of Scripting Additions. As for FaceSpan, that is anyone's
- guess, but it would be nice if the FaceSpan people could get an update
- out the door and included with 7.5. Also, while the CD will contain more
- than the floppy version there won't be any core 7.5 pieces missing from
- the floppy version. What won't be included on the floppies is the
- bundled third party software, as well as the third party demos.
-
- -Hades
- =========================================================================
- Date: Thu, 25 Aug 1994 17:20:30 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
- Subject: Receiving raw Apple Events in scripts
-
- I am working on a mail parsing and announcement script which should run in
- the background and utilize the Eudora notification event "ENot".
- I would like to write something like:
-
- on Appleevent class CSOm event ENot
- -- announce something
- end
-
- Is this possible and what is the correct syntax?
-
- Thanks,
-
- Roel Vertegaal
-
-
- +----------------------------------------------------------+
- | Department of Ergonomics |
- | University of Twente |
- | P.O. Box 217, 7500 AE Enschede |
- | The Netherlands |
- | phone: +31 53 89 33 24 |
- | fax: +31 53 35 66 95 |
- +----------------------------------------------------------+
- =========================================================================
- Date: Thu, 25 Aug 1994 11:00:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Developing the Aete resource
-
- >I have a custom apple event and would like to develop an Aete resource
- >for it so I can make it scriptable.
- >
- The best tools for creating/editing 'aete' resources are Rez and
- Resorcerer. I prefer the former in that I can use text tools
- (search/replace/macros) on it while the latter is quite nice because it
- keeps lists of common items and it hides all the "reserved" stuff.
-
- You could probably make do with other tools, but why???
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Thu, 25 Aug 1994 11:12:32 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Speck <speck@INTERVAL.COM>
- Subject: Re: Developing the Aete resource
-
- Leonard Rosenthol wrote:
-
- >>I have a custom apple event and would like to develop an Aete resource
- >>for it so I can make it scriptable.
- >>
- > The best tools for creating/editing 'aete' resources are Rez and
- >Resorcerer. I prefer the former in that I can use text tools
- >(search/replace/macros) on it while the latter is quite nice because it
- >keeps lists of common items and it hides all the "reserved" stuff.
-
- Too add more to the list of tools: the 'Aete Editor b3' (I found it on
- Symantec 7) is a HyperCard stack. It is nice, as it is easy to navigate
- around, adding classes and events to the proper suite, etc.
- One hint is to make the card larger, and show the hidden fields. Especially
- in editing the properties of a class, I found this usefull.
-
- ---
- Peter Speck
- (And it was eleven o'clock
- which was time for a little something)
- =========================================================================
- Date: Fri, 26 Aug 1994 08:44:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Finder Reference
-
- Danny Goodman <A5933643684@ATTPLS.NET> writes:
-
- >:By the way, the basic AppleScript "file" and "alias" prefixes work
- >with folders
- >:and disks, too:
- >:
- >: info for file "Mhacking Tosh II:Documents"
- >:
- >:(trailing colon optional) returns information for the :"Documents"
- >folder on
- >:my hard disk, while
- >:
- >: info for file "Mhacking Tosh II:"
- >:
- >:returns information about the hard disk itself.
- >
- >Yes, but you cannot use alias or file references for things like the
- >Desktop Folder or Trash in scriptable Finder.
-
- It's true, "file" doesn't work, but "alias" does! I tried:
-
- tell application "Finder"
- every file of alias "Mhacking Tosh II:Desktop Folder:"
- end tell
-
- and got back a list of the stuff on my desktop. I tried replacing
- "Desktop Folder" with "Trash", and that works, too.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 25 Aug 1994 13:55:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Are script Libraries concurrent?
-
- Are script libraries (using the load script command) available to several
- scripts on the same machine at the same time. If so, what happens to
- globals declared in the library. If not, I'll have to put the library code
- into each script. Is there a commercial product that lets you create script
- projects that will build a script from several files?
-
- -Erik
- =========================================================================
- Date: Thu, 25 Aug 1994 14:45:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Are script Libraries concurrent?
-
- > Are script libraries (using the load script command) available to
- > several scripts on the same machine at the same time. If so, what
- > happens to globals declared in the library. If not, I'll have to put
- > the library code into each script. Is there a commercial product that
- > lets you create script projects that will build a script from
- > several files?
-
- I was under the impression (not rigorously tested) that when you load a
- script library, you essentially give the program a copy of the library to
- mess with -- in other words, that everything is localized. I could be wrong,
- though ...
-
- -roy
- =========================================================================
- Date: Thu, 25 Aug 1994 19:10:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: How to quit one script and launch another?
-
- I want script application A to launch script application B and then
- completely quit. Using combinations of launch and run, the best I can do
- is call B as a subroutine. I want to do this so that script A can call
- script B to update A from a file server and then re-launch A. In the DOS
- batch file world you would use CALL.
-
- Any ideas?
-
- -Erik
- =========================================================================
- Date: Fri, 26 Aug 1994 14:24:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: How to quit one script and launch another?
-
- Erik Smith <ersmith@UCSD.EDU> writes:
-
- >I want script application A to launch script application B and then
- >completely quit. Using combinations of launch and run, the best I can do
- >is call B as a subroutine. I want to do this so that script A can call
- >script B to update A from a file server and then re-launch A. In the DOS
- >batch file world you would use CALL.
-
- You could have B tell A to quit.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Fri, 26 Aug 1994 00:13:36 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- > I am working on a mail parsing and announcement script which should run in
- > the background and utilize the Eudora notification event "ENot".
-
- Aren't we all. :-|
-
- > on Appleevent class CSOm event ENot
-
- > Is this possible and what is the correct syntax?
-
- Yes and no. It SEEMS as if you should be able to write soemthing like
- on notice -- the 2.1 notification message
-
- just like you write "on open"
-
- But it compiles as a procedure and NOT as an event handler. (To see the
- difference, compile "on open" with special formatting for 'variables.')
-
- If anyone has an example of an event handler for an event other than the
- four required ones, I haven't seen it.
-
- But you CAN write a handler if you use those pesky angle brackets.
-
- on <<event CSOmeNot>>
- do stuff
- end
-
- --the angle brackets are speical characters.
-
- It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
- how to tell Applescript that notice is NOT a variable but the name of an
- event.
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Fri, 26 Aug 1994 00:11:52 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Are script Libraries concurrent?
-
- Roy S. Rapoport <rsr@BERKSYS.COM> wrote:
- >
- >> Are script libraries (using the load script command) available to
- >> several scripts on the same machine at the same time. If so, what
- >> happens to globals declared in the library. If not, I'll have to put
- >> the library code into each script. Is there a commercial product that
- >> lets you create script projects that will build a script from
- >> several files?
- >
- >I was under the impression (not rigorously tested) that when you load a
- >script library, you essentially give the program a copy of the library to
- >mess with -- in other words, that everything is localized. I could be wrong,
- >though ...
-
- You aren't wrong, but you're not completely correct either. ;)
-
- You can load a script (you can think of it as a library, but it's really
- just a script) from disk using the "load script" command. You can modify
- properties and they will retain their values. If you don't save the script
- though, these values will be lost. That's why AppleScript includes a
- "store script" command. You can write the script back to disk if you need
- to retain data.
-
- You can also embed scripts into other scripts by putting them into a
- property. This definately results in seperate copies, but you don't have
- to bother loading and saving the script. It fattens up the script since
- you have a complete copy of the code in the property. Thus, I prefer to
- store an alias to the script and load it at run time. See the FinderLib
- documentation for complete examples of both techniques.
-
- Personally, I prefer to use a seperate run-only script with no code in it
- for data. I do this because you lose the data when you recompile and if
- you need to change the code you can be totally screwed if you forget or
- recompile accidentally. Storing your script without any code generally
- prevents you from needing to look at it and storing it read-only definately
- keeps you from looking at it.
-
- So Roy, you are correct in saying that every program gets a different copy
- of the script object, but you don't have to toss the changes made to it if
- you don't want. Now the issue becomes, what kind of concurrency problems
- do you have to avoid? You can't simply keep the script file open. The
- load and store commands don't do that. You need some sort of semaphore to
- indicate that someone has the script "checked out". I'd probably use the
- file name. Rename it from foo to foo.lock before reading the script. If
- you fail to rename it, then someone already has it renamed and you have to
- wait. If you succeed, then keep going. Simple and effective.
-
- Sounds like this could done more generally with a semaphore osax too. It
- would be easy. It could take 1 thru 32 as a semaphore number along with a
- boolean for setting or clearing. It could return a boolean telling whether
- or not that semaphore is set or clear. This would be a prime use for the
- refcon bits. No disposal necessary. I wonder what else it could be good
- for? Whine at me if you need something like this, otherwise it'll wait
- until I need it. ;)
-
- > Is there a commercial product that
- > lets you create script projects that will build a script from
- > several files?
-
- Oh, and before I forget, ScriptServer isn't commercial, but it is
- shareware, so it is supported and guarenteed. That's right, all of my
- shareware comes with a money back guarentee. It is easy to tell that you
- aren't going to need it since you don't pay until it _does_ work. Don't
- let the fact that ScriptServer is designated alpha fool you. I could have
- simply slammed it to a release version number, but I have a lot more stuff
- that I want to add to it, and I will. The parts that are there are solid
- though. We've been using it at my work to build our Apple products and I
- have friends at Apple using it for their projects. ScriptServer works and
- it works well.
-
- Jon
- =========================================================================
- Date: Fri, 26 Aug 1994 00:11:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: How to quit one script and launch another?
-
- Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
- >
- >Erik Smith <ersmith@UCSD.EDU> writes:
- >
- >>I want script application A to launch script application B and then
- >>completely quit. Using combinations of launch and run, the best I can do
- >>is call B as a subroutine. I want to do this so that script A can call
- >>script B to update A from a file server and then re-launch A. In the DOS
- >>batch file world you would use CALL.
- >
- >You could have B tell A to quit.
-
- I think you missed the mistake here, Lawrence.
-
- System 7 NEVER calls apps as subroutines. It is impossible to make it do
- so. Therefore, I believe that Erik is simply mistaken and I'll bet I know
- why.
-
- If you were to write a simple script that had only a repeat loop in it, you
- could launch it and it would display this behavior. A repeat loop would
- block the launcher from getting time by burning cycles without calling
- WaitNextEvent. This is why it appears that it is running as a subroutine.
- If you made it do some simple AppleEvent in the loop (call an osax or an
- app) then the launcher would get time and quit before the repeat loop
- finished.
-
- Well, that's my guess anyhow.
-
- Jon
- =========================================================================
- Date: Fri, 26 Aug 1994 15:39:20 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: ScriptServer
-
- >Oh, and before I forget, ScriptServer isn't commercial, but it is
- >shareware, so it is supported and guarenteed.
-
- What does it do, can we have some details on it.
- (and what it does, and how to order it)
-
- thanks !!!
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Fri, 26 Aug 1994 09:37:52 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Eudora - Receiving raw Apple Events in scripts
-
- >> I am working on a mail parsing and announcement script which should run in
- >> the background and utilize the Eudora notification event "ENot".
- >
- >Aren't we all. :-|
- >
- >> on Appleevent class CSOm event ENot
- >
-
- As I understand the Eudora AppleEvent docs - isn't Eudora supposed to
- attach a list of new messages to the notification event - .
-
- Mail Notification Event
- Eudora uses this event to notify a client application that mail has
- arrived. It also may be generated by the user, if he wants the client to
- (re)process selected messages.
- Class: kEudoraSuite
- Event: kEuNotify
-
- Parameters:
- keyEuMessageList
- - typeAEDescList List of message objects of newly-arrived messages.
-
-
- and if so - how do you get and use that list with AppleScript. The sorter I
- wrote uses the notification event to start it but then falls back on
- checking every message in the In Box looking for ones with status = 1 (ie
- new messages). Things would be a lot simplier if I could get a list from
- Eudora that told me exactly which messages were new so I didn't have to go
- looking for them.
-
- At this point I have another launcher program written in C that catches the
- notification event and launches the AppleScript sorter in the background. I
- know this may be rather perverse too but I can't find a way to get the
- AppleScript sorter to run in the background on notification. Is there a
- way?
-
-
- Best-
-
-
- Greg
- =========================================================================
- Date: Fri, 26 Aug 1994 10:49:18 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Finder Reference
-
- >It's true, "file" doesn't work, but "alias" does! I tried:
-
- In your example, it works, but not when the alias reference is used to fulfil
- a location parameter for commands such as Copy or Make Alias.
-
- Danny
- =========================================================================
- Date: Fri, 26 Aug 1994 07:53:57 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Mealiffe <mealiffe@NETCOM.COM>
- Subject: Scripting Now Up-To-Date
- In-Reply-To: <199408260459.VAA22282@mail.netcom.com>
-
- I would like to implement a gateway between our UNIX system and Now
- Up-To-Date using the Script Daemon application from Peter Lewis. Does
- anyone out there have some idea as to what script commands I need to send
- Now Up-To-Date to get a listing of every event (with name, description,
- event type, and everything else) in the current month and next month?
- This info would need to be returned in some sort of delimited format that
- could then be processed by a unix shell script utilizing grep and cut.
- Please let me know if you have any ideas.
-
- Thanks,
- -jeff
-
- Jeff Mealiffe | Internet: mealiffe@netcom.com
- Macintosh Consultant/System Admin | eWorld: JeffM
- Internet DNS/Mail/News Admin | voice: (619) 286-2777
- Lewis Junior High School | pager: (619) 494-7403
- San Diego City Schools | fax: (619) 582-7804
- ** For Information About The Lewis Jr. High Educational Foundation, send **
- ** e-mail to lewis@cerf.net with a subject of "mailserv send foundation" **
- ** (without the quotes). The system will respond automatically. **
- =========================================================================
- Date: Fri, 26 Aug 1994 11:06:04 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: INRA000 <INRA@MUSICB.MCGILL.CA>
- Subject: Re[2]: Receiving raw Apple Events in scripts
- In-Reply-To: In reply to your message of THU 25 AUG 1994 16:13:36 EDT
-
- >Yes and no. It SEEMS as if you should be able to write soemthing like
- >on notice -- the 2.1 notification message
- >
- >just like you write "on open"
- >
- >But it compiles as a procedure and NOT as an event handler. (To see the
- >difference, compile "on open" with special formatting for 'variables.')
- [...]
- >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
- >how to tell Applescript that notice is NOT a variable but the name of an
- >event.
-
- A product of mine, File Tracker, uses "Attached" scripts and can
- send notifications, and thus requires the ability to write scripts with
- handlers for its Apple Events. The only solution I could come up with
- (Which I'm currently using) was to write a dummy OSAX that contained the
- 'aete' resource for the necessary events and stick it in the System
- Folder. In this way, the OSAX's terminology is added to the System's,
- and one can successfully write stuff like 'on mySpecialEvent myParam
- theParam' in the Script Editor and it will compile correctly. I call the
- OSAX an 'enabler' and point out in the docs that it has to be in the
- Scripting Extensions folder for the Script Editor to recognize FT's
- terminology in scripts. Seems to work pretty well.
-
- This, of course, isn't the optimal solution, and I would be very
- interested in hearing if someone has a better idea.
-
- Cheers,
-
- Mark Aiken
- inra@musicb.mcgill.ca
- =========================================================================
- Date: Fri, 26 Aug 1994 11:15:34 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
- Subject: KeyQuencer and keypad codes
-
- I'm trying out KeyQuencer to automate part of a vt100 session.
- KeyQuencer looks to be very useful, but I'm having a problem getting it to
- generate a keypad press. The Key command appears to allow use of keycodes,
- but I have no idea what the codes are or what the syntax is (it looks like
- I need to specify an ascii code with a keycode). Has anyone done this
- recently? I tried sending the vt100 Esc code equivalent, but I can't get
- that to work either. I'm using Telnet 2.6.
-
- -- Dave
- =========================================================================
- Date: Fri, 26 Aug 1994 11:48:44 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Scripting Now Up-To-Date
-
- >I would like to implement a gateway between our UNIX system and Now
- >Up-To-Date using the Script Daemon application from Peter Lewis. Does
- >anyone out there have some idea as to what script commands I need to send
- >Now Up-To-Date to get a listing of every event (with name, description,
- >event type, and everything else) in the current month and next month?
- >This info would need to be returned in some sort of delimited format that
- >could then be processed by a unix shell script utilizing grep and cut.
- >Please let me know if you have any ideas.
-
- Oddly enough, you can look on gaea.kgs.ukans.edu in
- /applescripts/scripts/Newton_Scripts
-
- I have a nice export script for NUD called 'export calendar to Newton' that
- does 99% of what you want. Check it out.
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 26 Aug 1994 11:17:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Scripting Now Up-To-Date
- In-Reply-To: Your message of "Fri, 26 Aug 94 11:48:44 EDT"
-
- >>I would like to implement a gateway between our UNIX system and Now
- >>Up-To-Date using the Script Daemon application from Peter Lewis. Does
- >>anyone out there have some idea as to what script commands I need to send
- >>Now Up-To-Date to get a listing of every event (with name, description,
- >>event type, and everything else) in the current month and next month?
- >>This info would need to be returned in some sort of delimited format that
- >>could then be processed by a unix shell script utilizing grep and cut.
- >>Please let me know if you have any ideas.
- >
- >Oddly enough, you can look on gaea.kgs.ukans.edu in
- >/applescripts/scripts/Newton_Scripts
- >
- >I have a nice export script for NUD called 'export calendar to Newton' that
- >does 99% of what you want. Check it out.
-
- You might also want to check
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/NUDSamples.hqx
-
- Have fun.
-
- pf
- =========================================================================
- Date: Fri, 26 Aug 1994 12:25:19 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re[2]: Receiving raw Apple Events in scripts
-
- On 8/26/94, INRA000 wrote about event handlers:
-
- > write a dummy OSAX that contained the 'aete' resource for the necessary
- > events and stick it in the System Folder. In this way, the OSAX's
- > terminology is added to the System's, and one can successfully write stuff
- > like 'on mySpecialEvent myParam theParam' in the Script Editor and it will
- > compile correctly.
-
- Just a few moments ago, in the shower preparing to leave for the Midwest
- (JUST as we get an interesting topic! of course) I was wondering if exactly
- this approach would work.
-
- > This, of course, isn't the optimal solution, and I would be very
- > interested in hearing if someone has a better idea.
-
- But, it WORKS. And AppleScript as wrtten does not. (Furthermore, i think
- this proves my claim that there really IS no way to write event handlers IN
- AS. The problem I've been running up against is that therer seems to be no
- way to tell AS that something is NOT a procedure.)
-
- This kind of fix shouldn't be neccesary, tho--AppleScript should be able to
- provide the syntactic sugar if the user TELLS it to inside a script. The
- necessary information is right inside the application already, innit?
-
- Syntax should prevent the user from ever having to write <<Event mumble>>
- in a script--they claim this is a high-level language! I wish AS had a
- proper (or even a crude) syntactic extension facility--it would be really
- nice if, when one wanted a case statement, one could just WRITE it by
- extending the syntax. (A good compiler and a well-written syntactic
- extension and this approach adds NO overhead to the resulting code.) I got
- really spoiled by writing in Scheme, I guess. <grin>
-
- Can you post details on what you did and how you did it?
- I know zilch about aetes--yet.
-
- ~ Kiran
-
- --
- 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
- =========================================================================
- Date: Fri, 26 Aug 1994 11:37:59 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Quit from applets
-
- Greetings,
-
- AppleScript with its varried syntax and extensions is a blast, in all senses of
- the word. I have an applet which remains open for the vast duration of its
- life. It is basically a network interface for a small database. When it comes
- time for it to quit, I want to have a piece of conditional code:
-
- on quit {}
- if gProjectDatabase = false then
- StopRegistration
- end if
-
- -- pass quit
- end quit
-
- How do I refer to 'super' quit?
-
- Humbled,
-
- Michael
- =========================================================================
- Date: Fri, 26 Aug 1994 14:21:52 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: ScriptBase
-
- Several of us have mentioned ScriptBase from Main Event. I requested a better
- description, and I'll append what I got. I'll post a press release on gaea
- whenever I get it decodeded properly. I think it has the price in it.
-
- Enjoy.
- pf
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- ScriptBase is a database for storing persistent variables and objects to be
- made available for global access within AppleScript scripts.
-
- Once installed, the database becomes part of the AppleScript system, adding a
- set of commands to the basic AppleScript vocabulary. Retrieving the objects is
- simple using AppleScript's natural-language syntax and structure. Objects can
- be values from either AppleScript variables or scriptable applications.
- Objects stored and retrieved in ScriptBase can be accessible any time from any
- script anywhere (applets/droplets, HyperCard, FaceSpan, imbedded scripts) on
- the user's computer. These objects can be of any type, including numbers,
- character strings, lists, records, scripts, and references to disks, files,
- folders, as well as abstract raw data, to name just a few.
-
- ScriptBase can be used to maintain system-wide settings, such as sets of
- preferences, and paths to frequently-used files or folders. Complex
- installations can be made easier by organizing data and scripts within the
- database's structure.
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Fri, 26 Aug 1994 15:39:14 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris LeCroy <lecroy@IDS.NET>
- Subject: FileMaker versions
-
- Hi,
-
- I'll spare you all the heated diatribe on the topic of Claris' lame habit
- of changing the 'aete' every release and just ask questions.
-
- I'm in a position where I have to write scripts that will function
- regardless of the version of FileMaker Pro currently being executed.
-
- Asking for the application's version property returns the number 131092 in
- versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
-
- What I've done in the past is to figure out what was broken in prior
- versions of FMP, and execute bits of code until it didn't fail. For
- example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
- version", etc.
-
- With the release of 2.1v3, I haven't been able to find anything at the
- application level that will cause a failure in 2.1v2 and not in 2.1v3.
- Unfortunately, there's no real guarantee that I have a database open, so I
- can't take advantage of the fact that numeric ID properties and things like
- will fail in 2.1v2 when databases are open.
-
- Any suggestions? Am I wrong about the version property not working? Is
- there a better way to deal with this problem? I suspect I'll be adding a
- 'vers' reading osax to my app. At least that would solve the problem
- permanently... and I probably could have been mostly done in the time it's
- taken to write this posting. ;-)
-
- Somewhat off the topic, was there ever a consensus on how we're all going
- to deal with naming conflicts between 'aete's, osaxen, etc? Since
- apparently you can do "tell document ..." to point to a specific osax, is
- it really really even a problem? I just got done playing with an app that
- used the word "file" as its "table" term. It caused problems when
- attempting to use file specifications inside a "tell application..." block.
-
-
- Thanks for any pointers...
-
-
- ---
- Chris LeCroy - lecroy@ids.net
- SouthBeach Software Corp.
- =========================================================================
- Date: Fri, 26 Aug 1994 16:10:06 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: INRA000 <INRA@MUSICB.MCGILL.CA>
- Subject: Re: Receiving raw Apple Events in scripts
- In-Reply-To: In reply to your message of FRI 26 AUG 1994 04:25:19 EDT
-
- >On 8/26/94, INRA000 wrote about event handlers:
- >But, it WORKS. And AppleScript as wrtten does not. (Furthermore, i think
- >this proves my claim that there really IS no way to write event handlers IN
- >AS. The problem I've been running up against is that therer seems to be no
- >way to tell AS that something is NOT a procedure.)
- [Zap]
- >Can you post details on what you did and how you did it?
- >I know zilch about aetes--yet.
-
- An 'aete' resource is an Apple Event TErminology resource, the
- resource that attaches AppleScript's internal four-letter codes for
- event and parameter types to human-readable terms that can be written
- in scripts. The problem we're running into here is that AS seems to only
- consider terminology that is part of the System aete (i.e, terminology
- that the System recognizes in virtue of its built-in capabilities as
- well as any add-on capabilities provided by Scripting Extensions
- (OSAXen)) when compiling event handlers. As a result, one can't write
- a handler for an event that is defined by an Application and not nor-
- mally recognized by the System, at least not in the Script Editor.
-
- The workaround I used was to write a dummy OSAX (Scripting
- Extension) that doesn't actually contain any working code, but that
- *does* contain the prescribed 'aete' resource for OSAXen. By dropping
- this dummy OSAX in your System Folder, its terminology is added to the
- System's, and voila, the Script Editor will compile event handlers for
- the events defined in the OSAX's 'aete' resource.
-
- I understand, although I have never written an app to test this
- myself, that apps that allow you to write scripts from within them,
- such as a hypothetical attachable and tinkerable app, don't have this
- problem because the Component Manager consults the app's 'aete'
- resource when compiling, even in the case of event handlers. I think
- Apple only considered the case of attachable/tinkerable apps when
- setting things up their current way, and didn't realize that the cur-
- rent situation creates a problems for applications such as Eudora and
- my own File Tracker, that rely on AS applets containing handlers for
- special events.
-
- Another solution to this problem would be to ship a custom Script
- Editor with apps such as FT and Eudora, that contain the necessary
- terminology and can therefore serve as tools for writing scripts with
- the necessary event handlers. ;-)
-
- Cheers,
-
- Mark Aiken
- inra@musicb.mcgill.ca
- =========================================================================
- Date: Fri, 26 Aug 1994 13:20:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Speck <speck@INTERVAL.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- > The workaround I used was to write a dummy OSAX (Scripting
- >Extension) that doesn't actually contain any working code, but that
- >*does* contain the prescribed 'aete' resource for OSAXen. By dropping
- >this dummy OSAX in your System Folder, its terminology is added to the
- >System's, and voila, the Script Editor will compile event handlers for
- >the events defined in the OSAX's 'aete' resource.
-
-
- I have had somewhat the same problem.
-
- If I write
-
- copy (MagicFunction()) to appleRef
- tell appleRef
- set pan 3 of mixer 2 to 0.2
- end tell
-
- then it won't compile because it doesn't know the aete of my special app.
-
- There should be some extension, like:
-
- copy (MagicFunction()) to appleRef
- with AppleScriptDictionary of "MagicMixer"
- tell appleRef
- set pan 3 of mixer 2 to 0.2
- end tell
- end AppleScriptDictionary
-
- ---
- Peter Speck
- (And it was eleven o'clock
- which was time for a little something)
- =========================================================================
- Date: Fri, 26 Aug 1994 14:48:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Cooperating with apps
-
- Greetings,
-
- Pity the script writer! The task of cooperating with applications becomes such
- a tiresome detail. Does anyone know if Adobe plans on recognizing OSA?
-
- I would have thought that activate was not dependent on an application's good
- behaviour. Not apparently so:
-
- activate application "Premiere @ 18Mb"
-
- times out.
-
- Is there a more robust way of accomplishing a context switch?
-
- Thanks!
-
- Michael
- =========================================================================
- Date: Fri, 26 Aug 1994 16:32:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Quit from applets
- In-Reply-To: <199408262012.NAA15951@mail3.netcom.com>
-
- On Fri, 26 Aug 1994, Mike Shaff wrote:
-
- > life. It is basically a network interface for a small database. When it come
- s
- > time for it to quit, I want to have a piece of conditional code:
-
- on quit()
- end quit
-
- should work.
-
- Derrick
- =========================================================================
- Date: Fri, 26 Aug 1994 16:41:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: receiving raw events/eudora
-
- >Date: Thu, 25 Aug 1994 17:20:30 -0700
- >From: Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
- >Subject: Receiving raw Apple Events in scripts
- >
- >I am working on a mail parsing and announcement script which should run in
- >the background and utilize the Eudora notification event "ENot".
- >I would like to write something like:
- >
- >on Appleevent class CSOm event ENot
- >-- announce something
- >end
- >
- >Is this possible and what is the correct syntax?
-
- As far as I can tell, this does not work. I have been in contact with
- several people via e-mail that are also trying to do this. ARGH!
-
- For the moment, my scripts poll eudora - yuck! On the other hand, what
- they do is pretty cool! (forward mail to text pager with some rules).
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, ZMODEM Tool, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Fri, 26 Aug 1994 21:04:27 -0300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Hutten <bhutten@FOX.NSTN.NS.CA>
- Subject: Getting custom icons in AppleScript
-
- I'm writing a script that has to get the "preview" icons from files saved
- in PhotoShop. A little ResEdit work reveals that these custom icons are
- stored in icl8 resource -16455 in each PhotoShop file.
-
- How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
- able to convert the icl8 to a PICT.....
-
- Any help appreciated, I'm new at this AppleScript game...
-
-
-
- - bill
- =========================================================================
- Date: Fri, 26 Aug 1994 17:43:07 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Eric Gorr <ericg@CS.UOREGON.EDU>
- Subject: Apple Script Books
-
- Are there any books on apple script that people would recommend?
-
-
- ===Eric Gorr================ericg@cs.uoregon.edu===========aka MystryMan===
- _____
- |\ /| * Invincibility is in oneself, vulnerability is in the opponent
- | O | * Therefore the considerations of the intelligent always include both
- |/_\| benefit and harm (Sun Tzu)
-
- #include <standard.disclamer>
- =====Insults, like violence, are the last resort of the incompetent...=====
- =========================================================================
- Date: Fri, 26 Aug 1994 18:08:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Getting custom icons in AppleScript
- In-Reply-To: Bill Hutten's message of Fri,
- 26 Aug 1994 21:04:27 -0300
- <9408270020.AA04509@quilty.Stanford.EDU>
-
- Greetings,
-
- Bill Hutten wrote:
-
- I'm writing a script that has to get the "preview" icons from files
- saved in PhotoShop. A little ResEdit work reveals that these custom
- icons are stored in icl8 resource -16455 in each PhotoShop file.
-
- How do I retrieve this resource? Do I need an osax? Ideally, I'd like
- to be able to convert the icl8 to a PICT.....
-
- I am also interested in the results of your quest. I am building a video
- project manager and one of the issues I am looking to cover is 'orphan' files.
- Files created or digitized by the user which have been saved into an
- application, system, or otherwise unintended folder. Showing a preview icon
- (if available) is a meaningful addition.
-
- You will find the GTQ library on gaea.kgs.ukans.edu (this ftp server will
- become a frequent mining site for you). It has:
-
- Extract Resource
-
- and other resource manipulators. If this is part of an dialog interface then
- perhaps Dialog Runner (also at gaea) could be cajoled into displaying the icl8?
-
- I would value some more experienced 'connectors' comments...
-
- Michael
- =========================================================================
- Date: Fri, 26 Aug 1994 18:19:51 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Walk folders
-
- Greetings,
-
- I am not certain how to phrase my question. With that caveat:
-
- What are the performance characteristics of the Walk Folder command from Jon's
- Commands (found on gaea)?
-
- I am more interested in its 'feel' than its theoretical nature.
-
- Thanks.
-
- Michael
- =========================================================================
- Date: Sat, 27 Aug 1994 00:36:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- Kiran Wagle <groo@NETCOM.COM> wrote:
- >
- >If anyone has an example of an event handler for an event other than the
- >four required ones, I haven't seen it.
- >
- >But you CAN write a handler if you use those pesky angle brackets.
- >
- >on <<event CSOmeNot>>
- >do stuff
- >end
- >
- >--the angle brackets are special characters.
- >
- >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
- >how to tell Applescript that notice is NOT a variable but the name of an
- >event.
-
- Well, I know how, but it's not quite the answer you were expecting. In
- fact, you are correct in that AppleScript can't handle general AppleEvents
- worth a damn. Mind you, I haven't actually done this, but I do know what
- is involved.
-
- First off, you don't send some custom event like CSOmeNot. You send an
- event that AppleScript knows, the Subroutine event. It is listed in the
- AppleScript suite document which is in the Registry folder of the
- AppleScript 1.0 and 1.1 CDs.
-
- Essentially, the subroutine event includes a lowercase string for the
- procedure name and a record of parameters. You send "notify" and the
- parameters. Now you write "on notify" in your script and everything works.
-
- -=-=-=-=-=-=-=-
-
- Mark Aiken <inra@musicb.mcgill.ca> wrote:
- > I understand, although I have never written an app to test this
- >myself, that apps that allow you to write scripts from within them,
- >such as a hypothetical attachable and tinkerable app, don't have this
- >problem because the Component Manager consults the app's 'aete'
- >resource when compiling, even in the case of event handlers. I think
- >Apple only considered the case of attachable/tinkerable apps when
- >setting things up their current way, and didn't realize that the cur-
- >rent situation creates a problems for applications such as Eudora and
- >my own File Tracker, that rely on AS applets containing handlers for
- >special events.
- >
- > Another solution to this problem would be to ship a custom Script
- >Editor with apps such as FT and Eudora, that contain the necessary
- >terminology and can therefore serve as tools for writing scripts with
- >the necessary event handlers. ;-)
-
- The component manager doesn't do squat except route OSA calls to the
- AppleScript component. The AppleScript component is the one who sends an
- event to grab an aete and use it while compiling. Just nitpicking. ;)
-
- As for the "hypothetical" Hypercard, it uses these subroutine events for
- all of its internal messages. I recommend that you use them too. That way
- you could even write your notification in HyperTalk, and you won't have to
- invent or register your own 4 character codes either.
-
- -=-=-=-=-=-=-=-
-
- Here's the relevant passage from the AppleScript Suite document from the
- 1.0 CD (my 1.1 CD is at the cleaners ;). All of the constants are defined
- in AppleScript.h.
-
- Jon
-
- -=-=-=-=-=-=-=-
-
- Subroutine Call - Call a user-defined subroutine
-
- The subroutine event is sent for calls to user-defined subroutines. They
- contain the name of the event as a text string, and any parameters for the
- event. A standard set of prepositional parameters are available.
-
- Event Class kASAppleScriptSuite 'ascr'
- Event ID kASSubroutineEvent 'psbr'
-
- Parameters
-
- keyDirectObject
- Description: The target, or list of arguments
- Descriptor Type: typeObjectSpecifier or typeAEList
- Required or Optional? Optional
- keyASSubroutineName
- Description: The subroutine name
- Descriptor Type: typeChar
- Required or Optional? Required
- keyASPrepositionAt
- keyASPrepositionAt
- keyASPrepositionIn
- keyASPrepositionFrom
- keyASPrepositionFor
- keyASPrepositionTo
- keyASPrepositionThru
- keyASPrepositionThrough
- keyASPrepositionBy
- keyASPrepositionOn
- keyASPrepositionInto
- keyASPrepositionOnto
- keyASPrepositionBetween
- keyASPrepositionAgainst
- keyASPrepositionOutOf
- keyASPrepositionInsteadOf
- keyASPrepositionAsideFrom
- keyASPrepositionAround
- keyASPrepositionBeside
- keyASPrepositionBeneath
- keyASPrepositionUnder
- keyASPrepositionOver
- keyASPrepositionAbove
- keyASPrepositionBelow
- keyASPrepositionApartFrom
- keyASPrepositionAbout
- keyASPrepositionSince
- keyASPrepositionUntil
- Description: Named prepositional parameters
- Descriptor Type: typeWildCard
- Required or Optional? Optional
- keyASUserRecordFields
- Description: Parameters with user-defined names
- Descriptor Type: typeUserRecordFields
- Required or Optional? Optional
-
- Reply Parameters
-
- keyAEResult
- Description: The result of the subroutine call
- Descriptor Type: typeWildCard
- Required or Optional? Optional
- (see Replies section for additional error reply parameters)
-
-
- typeUserRecordFields - List of user-defined record fields
-
- A typeUserRecordFields descriptor record specifies a list of user-defined
- record fields - their names and values. The list contains alternating name
- value pairs, where each name is typeIntlText and each value is of any type.
-
-
- Data Size Variable
- =========================================================================
- Date: Sat, 27 Aug 1994 00:37:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Quit from applets
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
- >
- >on quit {}
- > if gProjectDatabase = false then
- > StopRegistration
- > end if
- >
- > -- pass quit
- >end quit
- >
- >How do I refer to 'super' quit?
-
- continue quit
-
-
- Remember, if you have a script that you can't quit because you forgot this,
- simply hold down the SHIFT key and your quit handler will not be called.
-
- Who's got the FAQ? Is this tip in it?
-
- Jon
- =========================================================================
- Date: Sat, 27 Aug 1994 00:37:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Getting custom icons in AppleScript
-
- Bill Hutten <bhutten@FOX.NSTN.NS.CA> wrote:
- >
- >I'm writing a script that has to get the "preview" icons from files saved
- >in PhotoShop. A little ResEdit work reveals that these custom icons are
- >stored in icl8 resource -16455 in each PhotoShop file.
- >
- >How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
- >able to convert the icl8 to a PICT.....
-
- Scriptable Finder!
-
- tell application "Finder"
- set theIcon to icon of file "foo"
- end tell
-
- Now what are you going to do with it? This is an "icon family" data
- record. It has properties corresponding to the various icon resources.
- You can seperate them with "<<class icl8>> of theIcon" but I don't think
- this really helps. I don't see any way to make this into a picture, and a
- resource osax wouldn't help since it couldn't make it into a picture
- either.
-
- I see this as a limitation of the scriptable Finder. If you do a copy from
- the Get Info dialog, you get a picture too. Ah well, nothing's perfect.
-
- Jon
- =========================================================================
- Date: Sat, 27 Aug 1994 00:37:13 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Walk folders
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
- >
- >I am not certain how to phrase my question. With that caveat:
- >
- >What are the performance characteristics of the Walk Folder command from Jo=
- n's
- >Commands (found on gaea)?
- >
- >I am more interested in its 'feel' than its theoretical nature.
-
- Well, I was more interested in code simplicity than performance, but I'm
- certain that it out-performs a comparable script. Nevertheless, I did some
- timing tests. Here's the script:
-
-
- script foo
- property c : 0
- on open (theFile)
- set c to c + 1
- return c
- end open
- end script
-
- set startTime to current date
- set c to walk folders alias "AppleScript=81:" with script foo
- set endTime to current date
- set secs to endTime - startTime
- {c, secs, c / secs}
-
-
- Here are the results:
-
- files seconds files/sec
- 213 (8M) 20 10.7 My Info-Mac junk folder (disk 1)
- 461 (9M) 40 11.5 My AppleScript collectables (disk =
- 1)
- 882 (29M) 53 16.6 My PhotoFlash sources (disk 2)
- 652 (70M) 22 29.6 The AppleScript 1.0 CD
- 15577 (473M) 1301 12.0 All of Disk 1
-
- Wow! It's 3 times faster off CD than off my HD? I don't know why that is.
- I'll investigate, but if anyone wants to email me their results (don't
- reply to the list!), I'll see if they help explain things. ;)
-
- Jon
- =========================================================================
- Date: Sat, 27 Aug 1994 02:00:36 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Quit from applets
-
- >Greetings,
- >
- >AppleScript with its varried syntax and extensions is a blast, in all senses of
- >the word. I have an applet which remains open for the vast duration of its
- >life. It is basically a network interface for a small database. When it comes
- >time for it to quit, I want to have a piece of conditional code:
- >
- >on quit {}
- > if gProjectDatabase = false then
- > StopRegistration
- > end if
- >
- > -- pass quit
- >end quit
-
- continue quit
-
- is the way to say the "pass quit" above.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Sat, 27 Aug 1994 02:17:52 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker versions
-
- >Hi,
- >
- >I'll spare you all the heated diatribe on the topic of Claris' lame habit
- >of changing the 'aete' every release and just ask questions.
-
- As opposed to leaving the 'aete' (or the events described by same) broken?
-
-
- >I'm in a position where I have to write scripts that will function
- >regardless of the version of FileMaker Pro currently being executed.
- >
- >Asking for the application's version property returns the number 131092 in
- >versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
-
- Looks like an oversight. In hex, that's 00020014, which argueably makes
- some sort of sense for one of those versions.
-
- >What I've done in the past is to figure out what was broken in prior
- >versions of FMP, and execute bits of code until it didn't fail. For
- >example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
- >version", etc.
- >
- >With the release of 2.1v3, I haven't been able to find anything at the
- >application level that will cause a failure in 2.1v2 and not in 2.1v3.
- >Unfortunately, there's no real guarantee that I have a database open, so I
- >can't take advantage of the fact that numeric ID properties and things like
- >will fail in 2.1v2 when databases are open.
-
- If there is a condition (no databases open) in which you can't tell the
- difference between 2.1v2 and 2.1v3, your don't care about the difference
- <at that time>, do you? If it does matter with a database open, do your
- test at the first time you notice that the count of databases is not 0.
-
- -------
- However, you might try asking for the version as a string (and try some
- other reasonable variations). AppleScript installs a 'vers' to anything
- coercion handler (presumably it doesn't actually coerce to anything, but
- rather a subset of that. But I see that FileMaker doesn't cooperate...it
- returns a number anyhow, which gets enclosed in quotes. [That's not how
- the Registry suggests doing it...the Registry way does work: I exercised
- it in a toy app I wrote for a show-and-tell. Floating point types work,
- too, in the coercion handler, BTW.]
-
- -------------
- However (2), I note that my 2.1v2=80 returns a version of 131089 (00020011).
- Mine was the result of passing 2.1v1 through the updater Claris uploaded.
- My guess would be that the updaters neglect to update the number returned
- as the version property.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Sat, 27 Aug 1994 02:21:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker versions
-
- >Somewhat off the topic, was there ever a consensus on how we're all going
- >to deal with naming conflicts between 'aete's, osaxen, etc? Since
- >apparently you can do "tell document ..." to point to a specific osax, is
- >it really really even a problem? I just got done playing with an app that
- >used the word "file" as its "table" term. It caused problems when
- >attempting to use file specifications inside a "tell application..." block.
-
- I'm dealing with the conflicts by installing only Scripting Additions I'm
- actively using (and being selective about that). AppleScript just sort of
- uses one big namespace...redefining things like "file" is downright
- unfriendly.
-
- --John [sorry about the double reply]
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Sat, 27 Aug 1994 02:32:42 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Cooperating with apps
-
- >Greetings,
- >
- >Pity the script writer! The task of cooperating with applications becomes such
- >a tiresome detail. Does anyone know if Adobe plans on recognizing OSA?
- >
- >I would have thought that activate was not dependent on an application's good
- >behaviour. Not apparently so:
- >
- >activate application "Premiere @ 18Mb"
- >
- >times out.
- >
- >Is there a more robust way of accomplishing a context switch?
-
- Given the Scriptable Finder, yes. This should do the trick:
-
- tell application "Finder"
- set frontmost of process "Premiere @ 18Mb" to true
- end tell
-
- Without the Scriptable Finder, there may well be an osax (or 10)...I
- haven't looked. [It's trivial to write the osax code, unless there's a
- "hidden" problem.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Sat, 27 Aug 1994 09:31:28 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: Scripting PageMaker
- In-Reply-To: <9408270934.AA25818@coral.bucknell.edu>
-
- I'm doing some scripting that involves PageMaker 5.0. I just found my
- little coupon do order the Script Guide, but it won't be here for 6-8 weeks.
-
- Could some kind soul with the Script Guide look up how do do the following:
-
- Select All of the text in the story selected with the arrow tool
- copy the text the clipboard
-
- get the name of the frontmost document
-
- Many thanks!
-
- Jeff Boulter
- Managing Editor
- The Bucknellian
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
- =========================================================================
- Date: Sat, 27 Aug 1994 12:30:23 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shaddar@AOL.COM
- Subject: Re: creation of a MacScripti...
-
- Sorry if this is late and the thread already died, but I was away for two
- weeks as I moved to school and would like to put in my two cents...
-
- Basically, I've found that I appreciate the functions found on a news reader
- much more than those of a mail reader. I think it is much more convenient to
- use a newsgroup than a mailing list. With the ability to make both
- simultaneously, I don't see the big problem everyone has. It seems to me
- that with both linked together, everyone is happy.
-
- ~Shaddar
- =========================================================================
- Date: Sat, 27 Aug 1994 10:14:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
-
- >First off, you don't send some custom event like CSOmeNot. You send an
- >event that AppleScript knows, the Subroutine event. It is listed in the
- >AppleScript suite document which is in the Registry folder of the
- >AppleScript 1.0 and 1.1 CDs.
-
- Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
-
- Another offender is GeoQuery. You'd expect to be able to send a GetData
- event, but instead you send it a custom event and instead of getting the
- result in the reply, it sends you a separate event with the results.
-
- _______________________________________________________________
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: file://ftp.netcom.com/pub/isis/home.html
- =========================================================================
- Date: Sat, 27 Aug 1994 16:56:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- Given that a few people suggested writing a OSAX to handle the Eudora "on
- notify" problem, could someone try it out and post the result? This sounds
- like the best interim solution.
-
- Brian Hall, Mark/Space Softworks, 408-293-7299, mspace@netcom.com
- =========================================================================
- Date: Sun, 28 Aug 1994 06:11:54 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: system@MAIL1.WYETH.COM
- Subject: Service Message
-
- --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
- Content-type: TEXT/REPORT
-
- Report on your message to: /U=Unknown/@mr.wyeth.com
- Reason: Unable to transfer; message formatting problem (1)
- Diagnostic: Maximum time expired (5)
- Supplementary information: Message was undeliverable to Microsoft mail. Error c
- onfirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- Arrival-date: Sat, 27 Aug 1994 23:03:58 EST
-
- --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
-
- From: Systems, Macintosh S
- Date: Sat, Aug 27, 1994 11:03 PM
- Subject: MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
- To: Mobilio, Dominick; Sabatucci, Joe
- File(s): Attach.Txt1
-
- Regarding Message ID : 85210082804991/446285@MAIL1
-
- From: NAME: Macintosh Scripting Systems
- <MAIL1::PMDF::uga.cc.uga.edu::MACSCRPT%DARTCMS1.BITNET>
-
- Author: NAME: Automatic digest processor
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
-
- To: NAME: Recipients of MACSCRPT digests
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
-
- Date : 27-AUG-1994 23:03:58.00
- There are 12 messages totalling 495 lines in this issue.
-
- Topics of the day:
-
- 1. Receiving raw Apple Events in scripts (2)
- 2. Quit from applets (2)
- 3. Getting custom icons in AppleScript
- 4. Walk folders
- 5. FileMaker versions (2)
- 6. Cooperating with apps
- 7. Scripting PageMaker
- 8. creation of a MacScripti...
- 9. MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- ----------------------------------------------------------------------
-
- Date: Sat, 27 Aug 1994 00:36:54 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- Kiran Wagle <groo@NETCOM.COM> wrote:
- >
- >If anyone has an example of an event handler for an event other than the
- >four required ones, I haven't seen it.
- >
- >But you CAN write a handler if you use those pesky angle brackets.
- >
- >on <<event CSOmeNot>>
- >do stuff
- >end
- >
- >--the angle brackets are special characters.
- >
- >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
- >how to tell Applescript that notice is NOT a variable but the name of an
- >event.
-
- Well, I know how, but it's not quite the answer you were expecting. In
- fact, you are correct in that AppleScript can't handle general AppleEvents
- worth a damn. Mind you, I haven't actually done this, but I do know what
- is involved.
-
- First off, you don't send some custom event like CSOmeNot. You send an
- event that AppleScript knows, the Subroutine event. It is listed in the
- AppleScript suite document which is in the Registry folder of the
- AppleScript 1.0 and 1.1 CDs.
-
- Essentially, the subroutine event includes a lowercase string for the
- procedure name and a record of parameters. You send "notify" and the
- parameters. Now you write "on notify" in your script and everything works.
-
- -=-=-=-=-=-=-=-
-
- Mark Aiken <inra@musicb.mcgill.ca> wrote:
- > I understand, although I have never written an app to test this
- >myself, that apps that allow you to write scripts from within them,
- >such as a hypothetical attachable and tinkerable app, don't have this
- >problem because the Component Manager consults the app's 'aete'
- >resource when compiling, even in the case of event handlers. I think
- >Apple only considered the case of attachable/tinkerable apps when
- >setting things up their current way, and didn't realize that the cur-
- >rent situation creates a problems for applications such as Eudora and
- >my own File Tracker, that rely on AS applets containing handlers for
- >special events.
- >
- > Another solution to this problem would be to ship a custom Script
- >Editor with apps such as FT and Eudora, that contain the necessary
- >terminology and can therefore serve as tools for writing scripts with
- >the necessary event handlers. ;-)
-
- The component manager doesn't do squat except route OSA calls to the
- AppleScript component. The AppleScript component is the one who sends an
- event to grab an aete and use it while compiling. Just nitpicking. ;)
-
- As for the "hypothetical" Hypercard, it uses these subroutine events for
- all of its internal messages. I recommend that you use them too. That way
- you could even write your notification in HyperTalk, and you won't have to
- invent or register your own 4 character codes either.
-
- -=-=-=-=-=-=-=-
-
- Here's the relevant passage from the AppleScript Suite document from the
- 1.0 CD (my 1.1 CD is at the cleaners ;). All of the constants are defined
- in AppleScript.h.
-
- Jon
-
- -=-=-=-=-=-=-=-
-
- Subroutine Call - Call a user-defined subroutine
-
- The subroutine event is sent for calls to user-defined subroutines. They
- contain the name of the event as a text string, and any parameters for the
- event. A standard set of prepositional parameters are available.
-
- Event Class kASAppleScriptSuite 'ascr'
- Event ID kASSubroutineEvent 'psbr'
-
- Parameters
-
- keyDirectObject
- Description: The target, or list of arguments
- Descriptor Type: typeObjectSpecifier or typeAEList
- Required or Optional? Optional
- keyASSubroutineName
- Description: The subroutine name
- Descriptor Type: typeChar
- Required or Optional? Required
- keyASPrepositionAt
- keyASPrepositionAt
- keyASPrepositionIn
- keyASPrepositionFrom
- keyASPrepositionFor
- keyASPrepositionTo
- keyASPrepositionThru
- keyASPrepositionThrough
- keyASPrepositionBy
- keyASPrepositionOn
- keyASPrepositionInto
- keyASPrepositionOnto
- keyASPrepositionBetween
- keyASPrepositionAgainst
- keyASPrepositionOutOf
- keyASPrepositionInsteadOf
- keyASPrepositionAsideFrom
- keyASPrepositionAround
- keyASPrepositionBeside
- keyASPrepositionBeneath
- keyASPrepositionUnder
- keyASPrepositionOver
- keyASPrepositionAbove
- keyASPrepositionBelow
- keyASPrepositionApartFrom
- keyASPrepositionAbout
- keyASPrepositionSince
- keyASPrepositionUntil
- Description: Named prepositional parameters
- Descriptor Type: typeWildCard
- Required or Optional? Optional
- keyASUserRecordFields
- Description: Parameters with user-defined names
- Descriptor Type: typeUserRecordFields
- Required or Optional? Optional
-
- Reply Parameters
-
- keyAEResult
- Description: The result of the subroutine call
- Descriptor Type: typeWildCard
- Required or Optional? Optional
- (see Replies section for additional error reply parameters)
-
-
- typeUserRecordFields - List of user-defined record fields
-
- A typeUserRecordFields descriptor record specifies a list of user-defined
- record fields - their names and values. The list contains alternating name
- value pairs, where each name is typeIntlText and each value is of any type.
-
-
- Data Size Variable
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 00:37:03 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Quit from applets
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
- >
- >on quit {}
- > if gProjectDatabase = false then
- > StopRegistration
- > end if
- >
- > -- pass quit
- >end quit
- >
- >How do I refer to 'super' quit?
-
- continue quit
-
-
- Remember, if you have a script that you can't quit because you forgot this,
- simply hold down the SHIFT key and your quit handler will not be called.
-
- Who's got the FAQ? Is this tip in it?
-
- Jon
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 00:37:10 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Getting custom icons in AppleScript
-
- Bill Hutten <bhutten@FOX.NSTN.NS.CA> wrote:
- >
- >I'm writing a script that has to get the "preview" icons from files saved
- >in PhotoShop. A little ResEdit work reveals that these custom icons are
- >stored in icl8 resource -16455 in each PhotoShop file.
- >
- >How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
- >able to convert the icl8 to a PICT.....
-
- Scriptable Finder!
-
- tell application "Finder"
- set theIcon to icon of file "foo"
- end tell
-
- Now what are you going to do with it? This is an "icon family" data
- record. It has properties corresponding to the various icon resources.
- You can seperate them with "<<class icl8>> of theIcon" but I don't think
- this really helps. I don't see any way to make this into a picture, and a
- resource osax wouldn't help since it couldn't make it into a picture
- either.
-
- I see this as a limitation of the scriptable Finder. If you do a copy from
- the Get Info dialog, you get a picture too. Ah well, nothing's perfect.
-
- Jon
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 00:37:13 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Walk folders
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
- >
- >I am not certain how to phrase my question. With that caveat:
- >
- >What are the performance characteristics of the Walk Folder command from Jo=
- n's
- >Commands (found on gaea)?
- >
- >I am more interested in its 'feel' than its theoretical nature.
-
- Well, I was more interested in code simplicity than performance, but I'm
- certain that it out-performs a comparable script. Nevertheless, I did some
- timing tests. Here's the script:
-
-
- script foo
- property c : 0
- on open (theFile)
- set c to c + 1
- return c
- end open
- end script
-
- set startTime to current date
- set c to walk folders alias "AppleScript=81:" with script foo
- set endTime to current date
- set secs to endTime - startTime
- {c, secs, c / secs}
-
-
- Here are the results:
-
- files seconds files/sec
- 213 (8M) 20 10.7 My Info-Mac junk folder (disk 1)
- 461 (9M) 40 11.5 My AppleScript collectables (disk =
- 1)
- 882 (29M) 53 16.6 My PhotoFlash sources (disk 2)
- 652 (70M) 22 29.6 The AppleScript 1.0 CD
- 15577 (473M) 1301 12.0 All of Disk 1
-
- Wow! It's 3 times faster off CD than off my HD? I don't know why that is.
- I'll investigate, but if anyone wants to email me their results (don't
- reply to the list!), I'll see if they help explain things. ;)
-
- Jon
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 02:00:36 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Quit from applets
-
- >Greetings,
- >
- >AppleScript with its varried syntax and extensions is a blast, in all senses of
- >the word. I have an applet which remains open for the vast duration of its
- >life. It is basically a network interface for a small database. When it comes
- >time for it to quit, I want to have a piece of conditional code:
- >
- >on quit {}
- > if gProjectDatabase = false then
- > StopRegistration
- > end if
- >
- > -- pass quit
- >end quit
-
- continue quit
-
- is the way to say the "pass quit" above.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 02:17:52 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker versions
-
- >Hi,
- >
- >I'll spare you all the heated diatribe on the topic of Claris' lame habit
- >of changing the 'aete' every release and just ask questions.
-
- As opposed to leaving the 'aete' (or the events described by same) broken?
-
-
- >I'm in a position where I have to write scripts that will function
- >regardless of the version of FileMaker Pro currently being executed.
- >
- >Asking for the application's version property returns the number 131092 in
- >versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
-
- Looks like an oversight. In hex, that's 00020014, which argueably makes
- some sort of sense for one of those versions.
-
- >What I've done in the past is to figure out what was broken in prior
- >versions of FMP, and execute bits of code until it didn't fail. For
- >example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
- >version", etc.
- >
- >With the release of 2.1v3, I haven't been able to find anything at the
- >application level that will cause a failure in 2.1v2 and not in 2.1v3.
- >Unfortunately, there's no real guarantee that I have a database open, so I
- >can't take advantage of the fact that numeric ID properties and things like
- >will fail in 2.1v2 when databases are open.
-
- If there is a condition (no databases open) in which you can't tell the
- difference between 2.1v2 and 2.1v3, your don't care about the difference
- <at that time>, do you? If it does matter with a database open, do your
- test at the first time you notice that the count of databases is not 0.
-
- -------
- However, you might try asking for the version as a string (and try some
- other reasonable variations). AppleScript installs a 'vers' to anything
- coercion handler (presumably it doesn't actually coerce to anything, but
- rather a subset of that. But I see that FileMaker doesn't cooperate...it
- returns a number anyhow, which gets enclosed in quotes. [That's not how
- the Registry suggests doing it...the Registry way does work: I exercised
- it in a toy app I wrote for a show-and-tell. Floating point types work,
- too, in the coercion handler, BTW.]
-
- -------------
- However (2), I note that my 2.1v2=80 returns a version of 131089 (00020011).
- Mine was the result of passing 2.1v1 through the updater Claris uploaded.
- My guess would be that the updaters neglect to update the number returned
- as the version property.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 02:21:56 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker versions
-
- >Somewhat off the topic, was there ever a consensus on how we're all going
- >to deal with naming conflicts between 'aete's, osaxen, etc? Since
- >apparently you can do "tell document ..." to point to a specific osax, is
- >it really really even a problem? I just got done playing with an app that
- >used the word "file" as its "table" term. It caused problems when
- >attempting to use file specifications inside a "tell application..." block.
-
- I'm dealing with the conflicts by installing only Scripting Additions I'm
- actively using (and being selective about that). AppleScript just sort of
- uses one big namespace...redefining things like "file" is downright
- unfriendly.
-
- --John [sorry about the double reply]
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 02:32:42 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Cooperating with apps
-
- >Greetings,
- >
- >Pity the script writer! The task of cooperating with applications becomes such
- >a tiresome detail. Does anyone know if Adobe plans on recognizing OSA?
- >
- >I would have thought that activate was not dependent on an application's good
- >behaviour. Not apparently so:
- >
- >activate application "Premiere @ 18Mb"
- >
- >times out.
- >
- >Is there a more robust way of accomplishing a context switch?
-
- Given the Scriptable Finder, yes. This should do the trick:
-
- tell application "Finder"
- set frontmost of process "Premiere @ 18Mb" to true
- end tell
-
- Without the Scriptable Finder, there may well be an osax (or 10)...I
- haven't looked. [It's trivial to write the osax code, unless there's a
- "hidden" problem.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 09:31:28 -0400
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: Scripting PageMaker
-
- I'm doing some scripting that involves PageMaker 5.0. I just found my
- little coupon do order the Script Guide, but it won't be here for 6-8 weeks.
-
- Could some kind soul with the Script Guide look up how do do the following:
-
- Select All of the text in the story selected with the arrow tool
- copy the text the clipboard
-
- get the name of the frontmost document
-
- Many thanks!
-
- Jeff Boulter
- Managing Editor
- The Bucknellian
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 12:30:23 EDT
- From: Shaddar@AOL.COM
- Subject: Re: creation of a MacScripti...
-
- Sorry if this is late and the thread already died, but I was away for two
- weeks as I moved to school and would like to put in my two cents...
-
- Basically, I've found that I appreciate the functions found on a news reader
- much more than those of a mail reader. I think it is much more convenient to
- use a newsgroup than a mailing list. With the ability to make both
- simultaneously, I don't see the big problem everyone has. It seems to me
- that with both linked together, everyone is happy.
-
- ~Shaddar
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 10:14:17 -0800
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
-
- >First off, you don't send some custom event like CSOmeNot. You send an
- >event that AppleScript knows, the Subroutine event. It is listed in the
- >AppleScript suite document which is in the Registry folder of the
- >AppleScript 1.0 and 1.1 CDs.
-
- Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
-
- Another offender is GeoQuery. You'd expect to be able to send a GetData
- event, but instead you send it a custom event and instead of getting the
- result in the reply, it sends you a separate event with the results.
-
- _______________________________________________________________
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: file://ftp.netcom.com/pub/isis/home.html
-
- ------------------------------
-
- Date: Sat, 27 Aug 1994 16:56:18 -0800
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- Given that a few people suggested writing a OSAX to handle the Eudora "on
- notify" problem, could someone try it out and post the result? This sounds
- like the best interim solution.
-
- Brian Hall, Mark/Space Softworks, 408-293-7299, mspace@netcom.com
-
- ------------------------------
-
- End of MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
- ***************************************************
-
-
- ************************************************
- Text attachment found and added as enclosure
- ************************************************
-
-
- --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)--
- =========================================================================
- Date: Sun, 28 Aug 1994 09:46:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Scriptable Fax Modem?
-
- I'd like a fax modem that can receive faxes and automatically run them
- through an OCR and save them as a text file. Any ideas?
-
- Maybe there is fax software out there that will do all of this without
- AppleScript?
-
- Maybe there is fax software that will save incoming faxes as individual
- graphics file and then there is a scriptable OCR package that can be told
- to read individual graphic files?
-
- Maybe for now all I can get is a fax modem that saves the files
- individually into a format that I could manually OCR with any OCR package?
-
- Any ideas?
-
- Kee Nethery
- =========================================================================
- Date: Sun, 28 Aug 1994 09:44:53 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Walk folders
- In-Reply-To: <9408270739.AA19272@uhunix.uhcc.Hawaii.Edu>
-
- I did a speed comparison of my folder and file processor to Jon's Commands
- "walk folder" command.
-
- RESULT: Jon's Commands came out the clear winner. It was about 6 times
- faster.
-
- Here are the applets I made for the test:
-
- --------------------------------------------------------------------------------
- property c : 0
-
- on open (theFilesAndFolders)
- set c to 0
- set startTime to current date
- RecursionNavigate(theFilesAndFolders)
- set endTime to current date
- set secs to endTime - startTime
- display dialog (c as string) & " files in " & secs & " seconds ("
- & c / secs & " files/second)"
- end open
-
- on RecursionNavigate(theFilesAndFolders)
- repeat with currentItem in theFilesAndFolders
- if (info for currentItem) is folder then
- set folderContents to (list folder (currentItem))
- set fullPathNameList to {}
- repeat with i in folderContents
- set fullPathName to (currentItem as
- string) & i
- if (info for fullPathName) is folder then
- set fullPathName to (fullPathName
- as string) & ":"
- end if
- set end of fullPathNameList to fullPathName
- end repeat
- RecursionNavigate(fullPathNameList)
- else
- set c to c + 1
- end if
- end repeat
- end RecursionNavigate
- --------------------------------------------------------------------------------
-
- on open (theFilesAndFolders)
- script foo
- property c : 0
- on open (theFile)
- set c to c + 1
- return c
- end open
- end script
-
- set startTime to current date
- set c to walk folders theFilesAndFolders with script foo
- set endTime to current date
- set secs to endTime - startTime
- display dialog (c as string) & " files in " & secs & " seconds ("
- & c / secs & " files/second)"
- end open
-
-
- --peter
- =========================================================================
- Date: Sun, 28 Aug 1994 15:20:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Quit from applets
- In-Reply-To: Your message of "Sat, 27 Aug 94 00:37:03 PDT"
-
- Jon said....
-
- >If you have a script that you can't quit because you forgot this,
- >simply hold down the SHIFT key and your quit handler will not be called.
- >
- >Who's got the FAQ? Is this tip in it?
-
- Yes, it is.
-
- pf
- =========================================================================
- Date: Sun, 28 Aug 1994 16:22:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Wiltgen <cwiltgen@MCS.COM>
- Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- >Given that a few people suggested writing a OSAX to handle the Eudora "on
- >notify" problem, could someone try it out and post the result? This sounds
- >like the best interim solution.
-
- BTW, has anyone been experimenting with 1.5, which is supposed to have
- improved AppleScript support?
-
-
- --
- Charles Wiltgen "Love is a snowmobile racing across the tundra and
- cwiltgen@mcs.com then suddenly it flips over, pinning you underneath.
- (INTP) At night, the ice weasels come." - Nietzsche (Groening)
- World Wide Web http://venus.mcs.net/~cwiltgen/home.html
- =========================================================================
- Date: Mon, 29 Aug 1994 09:52:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Receiving raw Apple Events in scripts
-
- Mike Cohen <isis@NETCOM.COM> writes:
-
- >At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
- >
- >>First off, you don't send some custom event like CSOmeNot. You send an
- >>event that AppleScript knows, the Subroutine event. It is listed in the
- >>AppleScript suite document which is in the Registry folder of the
- >>AppleScript 1.0 and 1.1 CDs.
- >
- >Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
-
- Here's a possible way around this. Write an osax which handles the CSOm/eNot
- message. This gives you a system-wide handler for this event. There's no need
- to give it an aete, since you're never going to to call it from AppleScript--
- only Eudora is going to send this event. What the osax does is send an
- ascr/psbr event to the current process, using a subroutine name of your
- choice, and passing on the arguments from the CSOm/eNot event.
-
- Basically, it's an "event redirector" osax.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Sun, 28 Aug 1994 19:39:43 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris LeCroy <lecroy@IDS.NET>
- Subject: Re: FileMaker versions
-
- >>I'll spare you all the heated diatribe on the topic of Claris' lame habit
- >>of changing the 'aete' every release and just ask questions.
- >
- >As opposed to leaving the 'aete' (or the events described by same) broken?
-
- Well, no. As opposed to doing it correctly once and for all. They've had
- almost two years, now...
-
- >>What I've done in the past is to figure out what was broken in prior
- >>versions of FMP, and execute bits of code until it didn't fail. For
- >>example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
- >>version", etc.
- >>With the release of 2.1v3, I haven't been able to find anything at the
- >>application level that will cause a failure in 2.1v2 and not in 2.1v3.
- >>Unfortunately, there's no real guarantee that I have a database open, so I
- >>can't take advantage of the fact that numeric ID properties and things like
- >>will fail in 2.1v2 when databases are open.
- >
- >If there is a condition (no databases open) in which you can't tell the
- >difference between 2.1v2 and 2.1v3, your don't care about the difference
- ><at that time>, do you? If it does matter with a database open, do your
- >test at the first time you notice that the count of databases is not 0.
-
- [Whoops, sorry... I wasn't very clear in my earlier comments.]
-
- Actually, I do care. I have an application that generates scripts that need
- to be syntactically correct based upon the version of FileMaker they're
- being generated for. Of course, I could start making trial and error
- OSACompile() calls on top of my trial and error AppleScript calls, but I'm
- afraid people might start calling me silly to my face, then.
-
- I've since slapped together a 'vers' and will rely upon that, as opposed to
- the kludgy way I've been doing it in the past.
-
-
-
- ---
- Chris LeCroy - lecroy@ids.net
- SouthBeach Software Corp.
- =========================================================================
- Date: Sun, 28 Aug 1994 19:39:55 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris LeCroy <lecroy@IDS.NET>
- Subject: Naming conflicts (was FileMaker versions)
-
- >>Somewhat off the topic, was there ever a consensus on how we're all going
- >>to deal with naming conflicts between 'aete's, osaxen, etc? Since
- >>apparently you can do "tell document ..." to point to a specific osax, is
- >>it really really even a problem? I just got done playing with an app that
- >>used the word "file" as its "table" term. It caused problems when
- >>attempting to use file specifications inside a "tell application..." block.
- >
- >I'm dealing with the conflicts by installing only Scripting Additions I'm
- >actively using (and being selective about that). AppleScript just sort of
- >uses one big namespace...redefining things like "file" is downright
- >unfriendly.
-
- They've since fixed the poor naming decision.
-
- BTW, "file" shows as an application keyword in Script Editor. Are there
- certain *application* keywords owned by AppleScript or are developers in a
- position of having to make educated guesses when designing AppleScript
- terminologies? (I don't have Apple's AppleScript docs, yet, so be easy on
- me if the answers are there...)
-
- Sorry, I was a little vague in my comments regarding name pollution. I'm
- not really too worried about *my* ability to muddle through name conflicts.
- I'm worried about the average user. As it stands there are probably 50-100
- (wild ass guess) osaxen generally available. What happens when there are
- 500? What happens when (for whatever reason) osaxen begin to appear as
- installer pieces to commercial applications and there are terminology
- conflicts between them? Does anyone else see this as a potential
- nightmare?
-
- > --John [sorry about the double reply]
- >jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- Nope, my fault for throwing two unrelated topics into one posting.
-
-
- ---
- Chris LeCroy - lecroy@ids.net
- SouthBeach Software Corp.
- =========================================================================
- Date: Mon, 29 Aug 1994 13:41:48 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Eudora 2.1, MailShare and Notify
-
- So I don't reinvent the wheel, is there a script out there that will
- receive and process the notifications posted by MailShare of new mail for
- Eudora?
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Sun, 28 Aug 1994 18:50:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Eudora Notification vs Frontier
-
- I've been watching the discussions here about receiving the incoming
- mail notification event from Eudora.
-
- It's time to mention that doing so is trivial in Frontier (or Frontier
- Runtime).
-
- Here's a simple handler (I think it came with some sample Eudora scripting
- code from Leonard Rosenthol)
-
- on eNot(msgList)
- speaker.beep()
- eudora.examples.eudoraHandler(msgList)
-
- This script would be placed in a table named CSOm, which would be in
- system.verbs.traps. (That's how incoming events can be passed to
- handlers...it's used with misc.dosc, in Frontier as shipped.)
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Sun, 28 Aug 1994 17:59:06 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: New version of Eudora (Better AppleScripting) (fwd)
-
- Sorry if this has already been posted here. I haven't seen it here yet
- though.
-
- ---------- Forwarded message ----------
- Date: Sun, 28 Aug 1994 16:52:57 -1000
- Subject: New version of Eudora (Better AppleScripting)
-
- >
- >Test versions of Eudora 1.5 (free) and 2.1 (commercial, updater from 2.0.3)
- >are now available on our ftp site (ftp.qualcomm.com, quest/mac/eudora/beta
- >subdirectory).
- >
- >These are TEST versions. They may have bugs. They do not have much
- >documentation. If you're not the adventurous sort, leave them alone. If
- >you do use them, be sure to report bugs to eudora-bugs@qualcomm.com.
- >
- >The test versions will expire on October 1, 1994; we'll have non-expiring
- >ones out long before that.
- >
- >The changes in 1.5 are primarily performance improvements and a greatly
- >improved AppleScript dictionary. Besides including the same performance
- >and AppleScript improvements as 1.5, 2.1 has some new features, including
- >support for dragging messages between mailboxes, kerberos, improved server
- >message management, and message color-coding.
- >
- >More information, including release notes, is available on the ftp site.
- >
- >--
- >Steve Dorner, Qualcomm Incorporated
- > Whosoever has lived long enough to find out what life is, knows how deep a
- > debt of gratitude we owe to Adam. He brought death into this world.
- > Mark Twain
- >
-
-
-
- ----------------------------------------------------------------------
- MCIP mailing list <mcip@netcom.com>. Subscriptions: qwerty@netcom.com.
- No crypto code. Archive: ftp.netcom.com in /pub/qwerty/MCIP.
- =========================================================================
- Date: Sun, 28 Aug 1994 21:46:47 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Are "Mail Enclosures" disks?
-
- Greetings,
-
- My application is trying to make a reasonable first guess as to a back-up
- volume. There exists a set of known volumes and the inevitable rest. A third
- volume will most often be a volume to which the user will back-up their project
- files.
-
- I was surprised when I experimented with
-
- set volumesOnline to list disks
- item 2 of volumesOnline
-
- --> "Mail Enclosures"
-
- I am developing on a machine with 7 pro. The studio scheduled to use this is
- currently using system 7. Presuming our luck with obtaining 7.5 does not get
- better, they will still be running 7 through-out the coming year.
-
- Can anyone either outline the AppleScript file system model or point me in a
- towards a promising document?
-
- As always, thank you kindly!
-
- Michael
- =========================================================================
- Date: Sun, 28 Aug 1994 22:37:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: Scriptable Fax Modem?
-
- >I'd like a fax modem that can receive faxes and automatically run them
- >through an OCR and save them as a text file. Any ideas?
-
- I've done this with FaxSTF/AutoPak. When you have AutoPak, STF has the
- ability to run one, and only one ;-(, application in the in box - the very
- first app.
-
- To get around this, I wrote a script with "on open fileList" that would
- then in turn call the OCR software and do my post-processing (sending to an
- app of ours). It isn't as elegant as it could be, but it seems to work
- well.
-
- >Maybe there is fax software out there that will do all of this without
- >AppleScript?
-
- See above.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, ZMODEM Tool, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Mon, 29 Aug 1994 17:36:42 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Changing value in string
-
- A newbie question:
-
- I'm having problems changing the value in a string. (the vInfo comes from a
- Pagemaker tab query, if you must know).
-
- set AppleScript's text item delimiters to ","
- set vInfo to "4,0,27,\" \",3,56,\" \",3,100,\" \",3,146,\" \""
- set first item of vInfo to 6
-
- doesn't seem to change the 4 to a 6.
-
- I've tried variations of the above (6 as string etc) to no result.
-
- Clues?
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Sun, 28 Aug 1994 22:43:27 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Eudora Notification
-
- --========================_15140444==_
- Content-Type: text/plain; charset="us-ascii"
-
- Brian Hall <mspace@NETCOM.COM> wrote:
- >
- >Given that a few people suggested writing a OSAX to handle the Eudora "on
- >notify" problem, could someone try it out and post the result? This sounds
- >like the best interim solution.
-
- Done. I just cobbled together an aete and threw it into an osax. It's not
- even stuffed, it's so small. It generates the right code, but I haven't
- tried it. I don't have a nice TCP link, only a dialup account, so it
- doesn't work well here. Just put some code into an "on notify" handler and
- see if it works.
-
- Good luck, experimenters. Oh, I've also included the MPW Rez code I used
- to create the aete below.
-
- Jon
-
-
- -=-=-=-=-=-=-
-
- #include "Types.r"
- #include "AERegistry.r"
- #include "ASRegistry.r"
- #include "AEUserTermtypes.r"
-
- resource 'aete' (0, purgeable) {
- 0x1,
- 0x0,
- english,
- roman,
- { /* array Suites: 3 elements */
- /* [1] */
- "Eudora Suite",
- "",
- 'CSOm',
- 1,
- 1,
- { /* array Events: 8 elements */
- /* [1] */
- "notify",
- "The Eudora notification message.",
- 'CSOm',
- 'eNot',
- noReply,
- "",
- replyOptional,
- singleItem,
- notEnumerated,
- notTightBindingFunction,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- verbEvent,
- reserved,
- reserved,
- reserved,
- cObjectSpecifier,
- "The new messages.",
- directParamRequired,
- singleItem,
- notEnumerated,
- doesntChangeState,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- reserved,
- { /* array OtherParams: 1 elements */
- },
- },
- { /* array Classes: 7 elements */
- },
- { /* array ComparisonOps: 0 elements */
- },
- { /* array Enumerations: 0 elements */
- },
- }
- };
-
-
-
-
- --========================_15140444==_
- Content-Type: application/mac-binhex40; name="Eudora_Notification"
- Content-Disposition: attachment; filename="Eudora_Notification"
-
- (This file must be converted with BinHex 4.0)
-
- :%d9eC'pbB5"1Eh4TCQPMBA4TEfi!Eh0KH'&cBh)"!!!!!!!!!!'Z"ii!!!!!!3!
- !!!&m!!!!I!!!!$)!!!,D"8aPCf&M!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"0&G@4
- [FQ%J6QpdD@CTBf&dD@pZ!J!!!'pcBAKKFf0b!!"[Ff&iBA0MFJ%!!5B$#!!!!!!
- !!!!!!!!!!!!!!!!!!+U'['-!!!!!!!!"VJ!!!!!!!!!!!!!!!!%1*3!!!!,D#8a
- )Efa3D94hE`!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!%%*3!!!!,D#%ePC'PM8f0
- b!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!%2*3!!!!,D#Qej8fpeEQ4c,M)!!!!
- !!!!!!!!!!!!!!!!!!!"i!3!!!!!!!!%-4A9NEh*K)&0eDA4P!%066fd!!3!"!!%
- 'EQpdD@Cj)&4SC5"&G@4[FQ%JEQpdD@CTBf&dD@pZ)'ePFh0KCf8Z3e02E@91Eh4
- ZG@aX!!#!!'pLDL!49'KP)'jPGb"YCA0cB@GPFbi!!!!!!!!!!!!!!!!"!!!!!A`
- !!!"m!!!!-J#j#)`L+!!!!"`!-J!!B@9dC3!!!!S!!2rr)!!!!!#j#)69K!:
-
-
- --========================_15140444==_--
- =========================================================================
- Date: Sun, 28 Aug 1994 22:43:33 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Generic Events
-
- By the way, in any events, with or without terminology, you can use the
- following keywords to label parameters. They will be added to the event
- with the appropriate keyword (i.e. keyASPrepositionAt == "at",
- keyASPrepositionIn == "in", keyASPrepositionInsteadOf == "instead of",
- etc.). You don't need them in the aete. Although, if you feel like using
- these keywords in your event, you can redefine them to be any words you
- like. I've used keyASPrepositionAt for "some goobery parameter" more than
- once. Beats making up a code. ;)
-
- Jon
-
- keyASPrepositionAt keyASPrepositionIn keyASPrepositionFrom
- keyASPrepositionFor keyASPrepositionTo keyASPrepositionThru
- keyASPrepositionThrough keyASPrepositionBy keyASPrepositionOn
- keyASPrepositionInto keyASPrepositionOnto keyASPrepositionBetween
- keyASPrepositionAgainst keyASPrepositionOutOf keyASPrepositionInsteadOf
- keyASPrepositionAsideFrom keyASPrepositionAround keyASPrepositionBeside
- keyASPrepositionBeneath keyASPrepositionUnder keyASPrepositionOver
- keyASPrepositionAbove keyASPrepositionBelow keyASPrepositionApartFrom
- keyASPrepositionAbout keyASPrepositionSince keyASPrepositionUntil
- =========================================================================
- Date: Mon, 29 Aug 1994 01:42:46 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
- Subject: Re: Changing value in string
- In-Reply-To: <199408290527.AA20373@freenet3.scri.fsu.edu>
-
- On Mon, 29 Aug 1994, Owen Watson wrote:
-
- > A newbie question:
- >
- > I'm having problems changing the value in a string. (the vInfo comes from a
- > Pagemaker tab query, if you must know).
- >
- > set AppleScript's text item delimiters to ","
- > set vInfo to "4,0,27,\" \",3,56,\" \",3,100,\" \",3,146,\" \""
- > set first item of vInfo to 6
- >
- > doesn't seem to change the 4 to a 6.
- >
- > I've tried variations of the above (6 as string etc) to no result.
- >
-
- I am confused as to whether your quotes are in the right places, what the
- slashes are, and whether vinfo is broken up correctly. Is this supposed
- to be a list of strings? are you using curly brackets?
-
- In case I have missed something in all that, you might try:
-
- set first text item of vinfo to 6
-
- -AbbyD
- =========================================================================
- Date: Mon, 29 Aug 1994 03:45:27 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: system@MAIL1.WYETH.COM
- Subject: Service Message
-
- --Boundary (ID X029HILLojuw8c6YYAET0g)
- Content-type: TEXT/REPORT
-
- Report on your message to: /U=Unknown/@mr.wyeth.com
- Reason: Unable to transfer; message formatting problem (1)
- Diagnostic: Maximum time expired (5)
- Supplementary information: Message was undeliverable to Microsoft mail. Error c
- onfirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- Arrival-date: Sun, 28 Aug 1994 23:00:51 EST
-
- --Boundary (ID X029HILLojuw8c6YYAET0g)
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
-
- From: Systems, Macintosh S
- Date: Sun, Aug 28, 1994 11:00 PM
- Subject: MACSCRPT Digest - 27 Aug 1994 to 29 Aug 1994
- To: Mobilio, Dominick; Sabatucci, Joe
- File(s): Attach.Txt1
-
- Regarding Message ID : 53410092804991/446627@MAIL1
-
- From: NAME: Macintosh Scripting Systems
- <MAIL1::PMDF::uga.cc.uga.edu::MACSCRPT%DARTCMS1.BITNET>
-
- Author: NAME: Automatic digest processor
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
-
- To: NAME: Recipients of MACSCRPT digests
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
-
- Date : 28-AUG-1994 23:00:51.00
- There are 11 messages totalling 901 lines in this issue.
-
- Topics of the day:
-
- 1. Service Message
- 2. Scriptable Fax Modem?
- 3. Walk folders
- 4. Quit from applets
- 5. MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
- 6. Receiving raw Apple Events in scripts
- 7. FileMaker versions
- 8. Naming conflicts (was FileMaker versions)
- 9. Eudora 2.1, MailShare and Notify
- 10. Eudora Notification vs Frontier
- 11. New version of Eudora (Better AppleScripting) (fwd)
-
- ----------------------------------------------------------------------
-
- Date: Sun, 28 Aug 1994 06:11:54 -0500
- From: system@MAIL1.WYETH.COM
- Subject: Service Message
-
- --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
- Content-type: TEXT/REPORT
-
- Report on your message to: /U=Unknown/@mr.wyeth.com
- Reason: Unable to transfer; message formatting problem (1)
- Diagnostic: Maximum time expired (5)
- Supplementary information: Message was undeliverable to Microsoft mail. Error
- confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- Arrival-date: Sat, 27 Aug 1994 23:03:58 EST
-
- --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
-
- From: Systems, Macintosh S
- Date: Sat, Aug 27, 1994 11:03 PM
- Subject: MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
- To: Mobilio, Dominick; Sabatucci, Joe
- File(s): Attach.Txt1
-
- Regarding Message ID : 85210082804991/446285@MAIL1
-
- From: NAME: Macintosh Scripting Systems
- <MAIL1::PMDF::uga.cc.uga.edu::MACSCRPT%DARTCMS1.BITNET>
-
- Author: NAME: Automatic digest processor
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
-
- To: NAME: Recipients of MACSCRPT digests
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
-
- Date : 27-AUG-1994 23:03:58.00
- There are 12 messages totalling 495 lines in this issue.
-
- Topics of the day:
-
- 1. Receiving raw Apple Events in scripts (2)
- 2. Quit from applets (2)
- 3. Getting custom icons in AppleScript
- 4. Walk folders
- 5. FileMaker versions (2)
- 6. Cooperating with apps
- 7. Scripting PageMaker
- 8. creation of a MacScripti...
- 9. MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- ----------------------------------------------------------------------
-
- Date: Sat, 27 Aug 1994 00:36:54 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- Kiran Wagle <groo@NETCOM.COM> wrote:
- >
- >If anyone has an example of an event handler for an event other than the
- >four required ones, I haven't seen it.
- >
- >But you CAN write a handler if you use those pesky angle brackets.
- >
- >on <<event CSOmeNot>>
- >do stuff
- >end
- >
- >--the angle brackets are special characters.
- >
- >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
- >how to tell Applescript that notice is NOT a variable but the name of an
- >event.
-
- Well, I know how, but it's not quite the answer you were expecting. In
- fact, you are correct in that AppleScript can't handle general AppleEvents
- worth a damn. Mind you, I haven't actually done this, but I do know what
- is involved.
-
- First off, you don't send some custom event like CSOmeNot. You send an
- event that AppleScript knows, the Subroutine event. It is listed in the
- AppleScript suite document which is in the Registry folder of the
- AppleScript 1.0 and 1.1 CDs.
-
- Essentially, the subroutine event includes a lowercase string for the
- procedure name and a record of parameters. You send "notify" and the
- parameters. Now you write "on notify" in your script and everything works.
-
- -=-=-=-=-=-=-=-
-
- Mark Aiken <inra@musicb.mcgill.ca> wrote:
- > I understand, although I have never written an app to test this
- >myself, that apps that allow you to write scripts from within them,
- >such as a hypothetical attachable and tinkerable app, don't have this
- >problem because the Component Manager consults the app's 'aete'
- >resource when compiling, even in the case of event handlers. I think
- >Apple only considered the case of attachable/tinkerable apps when
- >setting things up their current way, and didn't realize that the cur-
- >rent situation creates a problems for applications such as Eudora and
- >my own File Tracker, that rely on AS applets containing handlers for
- >special events.
- >
- > Another solution to this problem would be to ship a custom Script
- >Editor with apps such as FT and Eudora, that contain the necessary
- >terminology and can therefore serve as tools for writing scripts with
- >the necessary event handlers. ;-)
-
- The component manager doesn't do squat except route OSA calls to the
- AppleScript component. The AppleScript component is the one who sends an
- event to grab an aete and use it while compiling. Just nitpicking. ;)
-
- As for the "hypothetical" Hypercard, it uses these subroutine events for
- all of its internal messages. I recommend that you use them too. That way
- you could even write your notification in HyperTalk, and you won't have to
- invent or register your own 4 character codes either.
-
- -=-=-=-=-=-=-=-
-
- Here's the relevant passage from the AppleScript Suite document from the
- 1.0 CD (my 1.1 CD is at the cleaners ;). All of the constants are defined
- in AppleScript.h.
-
- Jon
-
- -=-=-=-=-=-=-=-
-
- Subroutine Call - Call a user-defined subroutine
-
- The subroutine event is sent for calls to user-defined subroutines. They
- contain the name of the event as a text string, and any parameters for the
- event. A standard set of prepositional parameters are available.
-
- Event Class kASAppleScriptSuite 'ascr'
- Event ID kASSubroutineEvent 'psbr'
-
- Parameters
-
- keyDirectObject
- Description: The target, or list of arguments
- Descriptor Type: typeObjectSpecifier or typeAEList
- Required or Optional? Optional
- keyASSubroutineName
- Description: The subroutine name
- Descriptor Type: typeChar
- Required or Optional? Required
- keyASPrepositionAt
- keyASPrepositionAt
- keyASPrepositionIn
- keyASPrepositionFrom
- keyASPrepositionFor
- keyASPrepositionTo
- keyASPrepositionThru
- keyASPrepositionThrough
- keyASPrepositionBy
- keyASPrepositionOn
- keyASPrepositionInto
- keyASPrepositionOnto
- keyASPrepositionBetween
- keyASPrepositionAgainst
- keyASPrepositionOutOf
- keyASPrepositionInsteadOf
- keyASPrepositionAsideFrom
- keyASPrepositionAround
- keyASPrepositionBeside
- keyASPrepositionBeneath
- keyASPrepositionUnder
- keyASPrepositionOver
- keyASPrepositionAbove
- keyASPrepositionBelow
- keyASPrepositionApartFrom
- keyASPrepositionAbout
- keyASPrepositionSince
- keyASPrepositionUntil
- Description: Named prepositional parameters
- Descriptor Type: typeWildCard
- Required or Optional? Optional
- keyASUserRecordFields
- Description: Parameters with user-defined names
- Descriptor Type: typeUserRecordFields
- Required or Optional? Optional
-
- Reply Parameters
-
- keyAEResult
- Description: The result of the subroutine call
- Descriptor Type: typeWildCard
- Required or Optional? Optional
- (see Replies section for additional error reply parameters)
-
-
- typeUserRecordFields - List of user-defined record fields
-
- A typeUserRecordFields descriptor record specifies a list of user-defined
- record fields - their names and values. The list contains alternating name
- value pairs, where each name is typeIntlText and each value is of any type.
-
-
- Data Size Variable
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 00:37:03 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Quit from applets
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
- >
- >on quit {}
- > if gProjectDatabase = false then
- > StopRegistration
- > end if
- >
- > -- pass quit
- >end quit
- >
- >How do I refer to 'super' quit?
-
- continue quit
-
-
- Remember, if you have a script that you can't quit because you forgot this,
- simply hold down the SHIFT key and your quit handler will not be called.
-
- Who's got the FAQ? Is this tip in it?
-
- Jon
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 00:37:10 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Getting custom icons in AppleScript
-
- Bill Hutten <bhutten@FOX.NSTN.NS.CA> wrote:
- >
- >I'm writing a script that has to get the "preview" icons from files saved
- >in PhotoShop. A little ResEdit work reveals that these custom icons are
- >stored in icl8 resource -16455 in each PhotoShop file.
- >
- >How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
- >able to convert the icl8 to a PICT.....
-
- Scriptable Finder!
-
- tell application "Finder"
- set theIcon to icon of file "foo"
- end tell
-
- Now what are you going to do with it? This is an "icon family" data
- record. It has properties corresponding to the various icon resources.
- You can seperate them with "<<class icl8>> of theIcon" but I don't think
- this really helps. I don't see any way to make this into a picture, and a
- resource osax wouldn't help since it couldn't make it into a picture
- either.
-
- I see this as a limitation of the scriptable Finder. If you do a copy from
- the Get Info dialog, you get a picture too. Ah well, nothing's perfect.
-
- Jon
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 00:37:13 -0700
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Walk folders
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
- >
- >I am not certain how to phrase my question. With that caveat:
- >
- >What are the performance characteristics of the Walk Folder command from Jo=
- n's
- >Commands (found on gaea)?
- >
- >I am more interested in its 'feel' than its theoretical nature.
-
- Well, I was more interested in code simplicity than performance, but I'm
- certain that it out-performs a comparable script. Nevertheless, I did some
- timing tests. Here's the script:
-
-
- script foo
- property c : 0
- on open (theFile)
- set c to c + 1
- return c
- end open
- end script
-
- set startTime to current date
- set c to walk folders alias "AppleScript=81:" with script foo
- set endTime to current date
- set secs to endTime - startTime
- {c, secs, c / secs}
-
-
- Here are the results:
-
- files seconds files/sec
- 213 (8M) 20 10.7 My Info-Mac junk folder (disk 1)
- 461 (9M) 40 11.5 My AppleScript collectables (disk =
- 1)
- 882 (29M) 53 16.6 My PhotoFlash sources (disk 2)
- 652 (70M) 22 29.6 The AppleScript 1.0 CD
- 15577 (473M) 1301 12.0 All of Disk 1
-
- Wow! It's 3 times faster off CD than off my HD? I don't know why that is.
- I'll investigate, but if anyone wants to email me their results (don't
- reply to the list!), I'll see if they help explain things. ;)
-
- Jon
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 02:00:36 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Quit from applets
-
- >Greetings,
- >
- >AppleScript with its varried syntax and extensions is a blast, in all senses of
- >the word. I have an applet which remains open for the vast duration of its
- >life. It is basically a network interface for a small database. When it comes
- >time for it to quit, I want to have a piece of conditional code:
- >
- >on quit {}
- > if gProjectDatabase = false then
- > StopRegistration
- > end if
- >
- > -- pass quit
- >end quit
-
- continue quit
-
- is the way to say the "pass quit" above.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 02:17:52 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker versions
-
- >Hi,
- >
- >I'll spare you all the heated diatribe on the topic of Claris' lame habit
- >of changing the 'aete' every release and just ask questions.
-
- As opposed to leaving the 'aete' (or the events described by same) broken?
-
-
- >I'm in a position where I have to write scripts that will function
- >regardless of the version of FileMaker Pro currently being executed.
- >
- >Asking for the application's version property returns the number 131092 in
- >versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
-
- Looks like an oversight. In hex, that's 00020014, which argueably makes
- some sort of sense for one of those versions.
-
- >What I've done in the past is to figure out what was broken in prior
- >versions of FMP, and execute bits of code until it didn't fail. For
- >example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
- >version", etc.
- >
- >With the release of 2.1v3, I haven't been able to find anything at the
- >application level that will cause a failure in 2.1v2 and not in 2.1v3.
- >Unfortunately, there's no real guarantee that I have a database open, so I
- >can't take advantage of the fact that numeric ID properties and things like
- >will fail in 2.1v2 when databases are open.
-
- If there is a condition (no databases open) in which you can't tell the
- difference between 2.1v2 and 2.1v3, your don't care about the difference
- <at that time>, do you? If it does matter with a database open, do your
- test at the first time you notice that the count of databases is not 0.
-
- -------
- However, you might try asking for the version as a string (and try some
- other reasonable variations). AppleScript installs a 'vers' to anything
- coercion handler (presumably it doesn't actually coerce to anything, but
- rather a subset of that. But I see that FileMaker doesn't cooperate...it
- returns a number anyhow, which gets enclosed in quotes. [That's not how
- the Registry suggests doing it...the Registry way does work: I exercised
- it in a toy app I wrote for a show-and-tell. Floating point types work,
- too, in the coercion handler, BTW.]
-
- -------------
- However (2), I note that my 2.1v2=80 returns a version of 131089 (00020011).
- Mine was the result of passing 2.1v1 through the updater Claris uploaded.
- My guess would be that the updaters neglect to update the number returned
- as the version property.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 02:21:56 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker versions
-
- >Somewhat off the topic, was there ever a consensus on how we're all going
- >to deal with naming conflicts between 'aete's, osaxen, etc? Since
- >apparently you can do "tell document ..." to point to a specific osax, is
- >it really really even a problem? I just got done playing with an app that
- >used the word "file" as its "table" term. It caused problems when
- >attempting to use file specifications inside a "tell application..." block.
-
- I'm dealing with the conflicts by installing only Scripting Additions I'm
- actively using (and being selective about that). AppleScript just sort of
- uses one big namespace...redefining things like "file" is downright
- unfriendly.
-
- --John [sorry about the double reply]
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 02:32:42 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Cooperating with apps
-
- >Greetings,
- >
- >Pity the script writer! The task of cooperating with applications becomes such
- >a tiresome detail. Does anyone know if Adobe plans on recognizing OSA?
- >
- >I would have thought that activate was not dependent on an application's good
- >behaviour. Not apparently so:
- >
- >activate application "Premiere @ 18Mb"
- >
- >times out.
- >
- >Is there a more robust way of accomplishing a context switch?
-
- Given the Scriptable Finder, yes. This should do the trick:
-
- tell application "Finder"
- set frontmost of process "Premiere @ 18Mb" to true
- end tell
-
- Without the Scriptable Finder, there may well be an osax (or 10)...I
- haven't looked. [It's trivial to write the osax code, unless there's a
- "hidden" problem.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 09:31:28 -0400
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: Scripting PageMaker
-
- I'm doing some scripting that involves PageMaker 5.0. I just found my
- little coupon do order the Script Guide, but it won't be here for 6-8 weeks.
-
- Could some kind soul with the Script Guide look up how do do the following:
-
- Select All of the text in the story selected with the arrow tool
- copy the text the clipboard
-
- get the name of the frontmost document
-
- Many thanks!
-
- Jeff Boulter
- Managing Editor
- The Bucknellian
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 12:30:23 EDT
- From: Shaddar@AOL.COM
- Subject: Re: creation of a MacScripti...
-
- Sorry if this is late and the thread already died, but I was away for two
- weeks as I moved to school and would like to put in my two cents...
-
- Basically, I've found that I appreciate the functions found on a news reader
- much more than those of a mail reader. I think it is much more convenient to
- use a newsgroup than a mailing list. With the ability to make both
- simultaneously, I don't see the big problem everyone has. It seems to me
- that with both linked together, everyone is happy.
-
- ~Shaddar
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 10:14:17 -0800
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Receiving raw Apple Events in scripts
-
- At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
-
- >First off, you don't send some custom event like CSOmeNot. You send an
- >event that AppleScript knows, the Subroutine event. It is listed in the
- >AppleScript suite document which is in the Registry folder of the
- >AppleScript 1.0 and 1.1 CDs.
-
- Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
-
- Another offender is GeoQuery. You'd expect to be able to send a GetData
- event, but instead you send it a custom event and instead of getting the
- result in the reply, it sends you a separate event with the results.
-
- _______________________________________________________________
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: file://ftp.netcom.com/pub/isis/home.html
-
- -----------------------------
-
- Date: Sat, 27 Aug 1994 16:56:18 -0800
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- Given that a few people suggested writing a OSAX to handle the Eudora "on
- notify" problem, could someone try it out and post the result? This sounds
- like the best interim solution.
-
- Brian Hall, Mark/Space Softworks, 408-293-7299, mspace@netcom.com
-
- -----------------------------
-
- End of MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
- ***************************************************
-
-
- ************************************************
- Text attachment found and added as enclosure
- ************************************************
-
-
- --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)--
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 09:46:23 -0800
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Scriptable Fax Modem?
-
- I'd like a fax modem that can receive faxes and automatically run them
- through an OCR and save them as a text file. Any ideas?
-
- Maybe there is fax software out there that will do all of this without
- AppleScript?
-
- Maybe there is fax software that will save incoming faxes as individual
- graphics file and then there is a scriptable OCR package that can be told
- to read individual graphic files?
-
- Maybe for now all I can get is a fax modem that saves the files
- individually into a format that I could manually OCR with any OCR package?
-
- Any ideas?
-
- Kee Nethery
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 09:44:53 -1000
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Walk folders
-
- I did a speed comparison of my folder and file processor to Jon's Commands
- "walk folder" command.
-
- RESULT: Jon's Commands came out the clear winner. It was about 6 times
- faster.
-
- Here are the applets I made for the test:
-
- --------------------------------------------------------------------------------
- property c : 0
-
- on open (theFilesAndFolders)
- set c to 0
- set startTime to current date
- RecursionNavigate(theFilesAndFolders)
- set endTime to current date
- set secs to endTime - startTime
- display dialog (c as string) & " files in " & secs & " seconds ("
- & c / secs & " files/second)"
- end open
-
- on RecursionNavigate(theFilesAndFolders)
- repeat with currentItem in theFilesAndFolders
- if (info for currentItem) is folder then
- set folderContents to (list folder (currentItem))
- set fullPathNameList to {}
- repeat with i in folderContents
- set fullPathName to (currentItem as
- string) & i
- if (info for fullPathName) is folder then
- set fullPathName to (fullPathName
- as string) & ":"
- end if
- set end of fullPathNameList to fullPathName
- end repeat
- RecursionNavigate(fullPathNameList)
- else
- set c to c + 1
- end if
- end repeat
- end RecursionNavigate
- --------------------------------------------------------------------------------
-
- on open (theFilesAndFolders)
- script foo
- property c : 0
- on open (theFile)
- set c to c + 1
- return c
- end open
- end script
-
- set startTime to current date
- set c to walk folders theFilesAndFolders with script foo
- set endTime to current date
- set secs to endTime - startTime
- display dialog (c as string) & " files in " & secs & " seconds ("
- & c / secs & " files/second)"
- end open
-
-
- --peter
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 15:20:42 -0500
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Quit from applets
-
- Jon said....
-
- >If you have a script that you can't quit because you forgot this,
- >simply hold down the SHIFT key and your quit handler will not be called.
- >
- >Who's got the FAQ? Is this tip in it?
-
- Yes, it is.
-
- pf
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 16:22:21 -0500
- From: Charles Wiltgen <cwiltgen@MCS.COM>
- Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
-
- >Given that a few people suggested writing a OSAX to handle the Eudora "on
- >notify" problem, could someone try it out and post the result? This sounds
- >like the best interim solution.
-
- BTW, has anyone been experimenting with 1.5, which is supposed to have
- improved AppleScript support?
-
-
- --
- Charles Wiltgen "Love is a snowmobile racing across the tundra and
- cwiltgen@mcs.com then suddenly it flips over, pinning you underneath.
- (INTP) At night, the ice weasels come." - Nietzsche (Groening)
- World Wide Web http://venus.mcs.net/~cwiltgen/home.html
-
- ------------------------------
-
- Date: Mon, 29 Aug 1994 09:52:00 +1200
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Receiving raw Apple Events in scripts
-
- Mike Cohen <isis@NETCOM.COM> writes:
-
- >At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
- >
- >>First off, you don't send some custom event like CSOmeNot. You send an
- >>event that AppleScript knows, the Subroutine event. It is listed in the
- >>AppleScript suite document which is in the Registry folder of the
- >>AppleScript 1.0 and 1.1 CDs.
- >
- >Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
-
- Here's a possible way around this. Write an osax which handles the CSOm/eNot
- message. This gives you a system-wide handler for this event. There's no need
- to give it an aete, since you're never going to to call it from AppleScript--
- only Eudora is going to send this event. What the osax does is send an
- ascr/psbr event to the current process, using a subroutine name of your
- choice, and passing on the arguments from the CSOm/eNot event.
-
- Basically, it's an "event redirector" osax.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 19:39:43 -0400
- From: Chris LeCroy <lecroy@IDS.NET>
- Subject: Re: FileMaker versions
-
- >>I'll spare you all the heated diatribe on the topic of Claris' lame habit
- >>of changing the 'aete' every release and just ask questions.
- >
- >As opposed to leaving the 'aete' (or the events described by same) broken?
-
- Well, no. As opposed to doing it correctly once and for all. They've had
- almost two years, now...
-
- >>What I've done in the past is to figure out what was broken in prior
- >>versions of FMP, and execute bits of code until it didn't fail. For
- >>example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
- >>version", etc.
- >>With the release of 2.1v3, I haven't been able to find anything at the
- >>application level that will cause a failure in 2.1v2 and not in 2.1v3.
- >>Unfortunately, there's no real guarantee that I have a database open, so I
- >>can't take advantage of the fact that numeric ID properties and things like
- >>will fail in 2.1v2 when databases are open.
- >
- >If there is a condition (no databases open) in which you can't tell the
- >difference between 2.1v2 and 2.1v3, your don't care about the difference
- ><at that time>, do you? If it does matter with a database open, do your
- >test at the first time you notice that the count of databases is not 0.
-
- [Whoops, sorry... I wasn't very clear in my earlier comments.]
-
- Actually, I do care. I have an application that generates scripts that need
- to be syntactically correct based upon the version of FileMaker they're
- being generated for. Of course, I could start making trial and error
- OSACompile() calls on top of my trial and error AppleScript calls, but I'm
- afraid people might start calling me silly to my face, then.
-
- I've since slapped together a 'vers' and will rely upon that, as opposed to
- the kludgy way I've been doing it in the past.
-
-
-
- ---
- Chris LeCroy - lecroy@ids.net
- SouthBeach Software Corp.
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 19:39:55 -0400
- From: Chris LeCroy <lecroy@IDS.NET>
- Subject: Naming conflicts (was FileMaker versions)
-
- >>Somewhat off the topic, was there ever a consensus on how we're all going
- >>to deal with naming conflicts between 'aete's, osaxen, etc? Since
- >>apparently you can do "tell document ..." to point to a specific osax, is
- >>it really really even a problem? I just got done playing with an app that
- >>used the word "file" as its "table" term. It caused problems when
- >>attempting to use file specifications inside a "tell application..." block.
- >
- >I'm dealing with the conflicts by installing only Scripting Additions I'm
- >actively using (and being selective about that). AppleScript just sort of
- >uses one big namespace...redefining things like "file" is downright
- >unfriendly.
-
- They've since fixed the poor naming decision.
-
- BTW, "file" shows as an application keyword in Script Editor. Are there
- certain *application* keywords owned by AppleScript or are developers in a
- position of having to make educated guesses when designing AppleScript
- terminologies? (I don't have Apple's AppleScript docs, yet, so be easy on
- me if the answers are there...)
-
- Sorry, I was a little vague in my comments regarding name pollution. I'm
- not really too worried about *my* ability to muddle through name conflicts.
- I'm worried about the average user. As it stands there are probably 50-100
- (wild ass guess) osaxen generally available. What happens when there are
- 500? What happens when (for whatever reason) osaxen begin to appear as
- installer pieces to commercial applications and there are terminology
- conflicts between them? Does anyone else see this as a potential
- nightmare?
-
- > --John [sorry about the double reply]
- >jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- Nope, my fault for throwing two unrelated topics into one posting.
-
-
- ---
- Chris LeCroy - lecroy@ids.net
- SouthBeach Software Corp.
-
- ------------------------------
-
- Date: Mon, 29 Aug 1994 13:41:48 +1200
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Eudora 2.1, MailShare and Notify
-
- So I don't reinvent the wheel, is there a script out there that will
- receive and process the notifications posted by MailShare of new mail for
- Eudora?
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 18:50:24 -0700
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Eudora Notification vs Frontier
-
- I've been watching the discussions here about receiving the incoming
- mail notification event from Eudora.
-
- It's time to mention that doing so is trivial in Frontier (or Frontier
- Runtime).
-
- Here's a simple handler (I think it came with some sample Eudora scripting
- code from Leonard Rosenthol)
-
- on eNot(msgList)
- speaker.beep()
- eudora.examples.eudoraHandler(msgList)
-
- This script would be placed in a table named CSOm, which would be in
- system.verbs.traps. (That's how incoming events can be passed to
- handlers...it's used with misc.dosc, in Frontier as shipped.)
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
-
- ------------------------------
-
- Date: Sun, 28 Aug 1994 17:59:06 -1000
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: New version of Eudora (Better AppleScripting) (fwd)
-
- Sorry if this has already been posted here. I haven't seen it here yet
- though.
-
- ---------- Forwarded message ----------
- Date: Sun, 28 Aug 1994 16:52:57 -1000
- Subject: New version of Eudora (Better AppleScripting)
-
- >
- >Test versions of Eudora 1.5 (free) and 2.1 (commercial, updater from 2.0.3)
- >are now available on our ftp site (ftp.qualcomm.com, quest/mac/eudora/beta
- >subdirectory).
- >
- >These are TEST versions. They may have bugs. They do not have much
- >documentation. If you're not the adventurous sort, leave them alone. If
- >you do use them, be sure to report bugs to eudora-bugs@qualcomm.com.
- >
- >The test versions will expire on October 1, 1994; we'll have non-expiring
- >ones out long before that.
- >
- >The changes in 1.5 are primarily performance improvements and a greatly
- >improved AppleScript dictionary. Besides including the same performance
- >and AppleScript improvements as 1.5, 2.1 has some new features, including
- >support for dragging messages between mailboxes, kerberos, improved server
- >message management, and message color-coding.
- >
- >More information, including release notes, is available on the ftp site.
- >
- >--
- >Steve Dorner, Qualcomm Incorporated
- > Whosoever has lived long enough to find out what life is, knows how deep a
- > debt of gratitude we owe to Adam. He brought death into this world.
- > Mark Twain
- >
-
-
-
- ----------------------------------------------------------------------
- MCIP mailing list <mcip@netcom.com>. Subscriptions: qwerty@netcom.com.
- No crypto code. Archive: ftp.netcom.com in /pub/qwerty/MCIP.
-
- ------------------------------
-
- End of MACSCRPT Digest - 27 Aug 1994 to 29 Aug 1994
- ***************************************************
-
-
- ************************************************
- Text attachment found and added as enclosure
- ************************************************
-
-
- --Boundary (ID X029HILLojuw8c6YYAET0g)--
- =========================================================================
- Date: Mon, 29 Aug 1994 10:02:05 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Johan Solve <johan.solve@ITN.HH.SE>
- Subject: QuickTake software scriptable?
-
- I have read somewhere that you could control the QuickTake camera with
- AppleScript. But the QuickTake application doesn't have a dictionary, so I
- can't find out how to do it.
- Possibly I am wrong about the scriptability. What's the deal? Is it
- possible to script the camera? If so, how is it done?
-
- ____________________________________________________________________
- "
- JOHAN SOLVE Department of Science and Technology
- <johan.solve@itn.hh.se> University College of Halmstad, Sweden
- =========================================================================
- Date: Sun, 28 Aug 1994 17:31:47 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Scriptable Fax Modem? -Reply
-
- Kee, we are currently working on alpha/beta for ExpressFax+ that does
- just that...
-
- Incoming Faxes can be OCR'd and i checked, it is scriptable....the
- dictionary follows...
-
- >>> Kee Nethery +1 510 843 6140 <kee@KAGI.COM> - 8/28/94 12:46 PM >>>
- I'd like a fax modem that can receive faxes and automatically run
- them through an OCR and save them as a text file. Any ideas?
-
- Maybe there is fax software out there that will do all of this
- without
- AppleScript?
-
- Maybe there is fax software that will save incoming faxes as
- individual graphics file and then there is a scriptable OCR package
- that can be told to read individual graphic files?
-
- Maybe for now all I can get is a fax modem that saves the files
- individually into a format that I could manually OCR with any OCR
- package?
-
- -----------------------
-
- TextBridge suite: Subset of the required and core suites used by
- TextBridge
-
- run: Sent to an application when it is double-clicked
- #run
-
- open: Open the specified list of image files and add them to the
- image queue
- #open alias -- List of image files to open and add to the image
- queue
-
- quit: Quit application
- #quit
- ##[saving yes/no/ask] -- Specifies whether or not to save the
- document being processed
-
- close: Close a window
- #close reference -- the object to close
-
- count: Return the number of elements of a particular class within an
- object
- #count reference -- the object whose elements are to be counted
- ##each type class -- the class of the elements to be counted
- #Result: integer
-
- create: Create a new element (zones only)
- #create
- ##new type class -- the class of the new element
- ##with properties record -- the initial values for the properties
- of the element
- #Result: reference
-
- delete: Delete an element from an object (zones only)
- #delete reference -- the element to delete
-
- exists: Verify if an object exists
- #exists reference -- the object in question
- #Result: boolean
-
- get: Get the data for an object
- #get reference -- the object whose data is to be returned
- ##[as type class] -- the desired types for the data, in order of
- preference
- #Result: anything
-
- save: "Go" and save the results
- #save
- ##[in alias] -- The file where the processed text should be stored,
- and/or the basename for the file where the page images should be
- stored
- ##[waiting yes/no] -- Specifies whether or not to wait for
- processing to finish
-
- set: Set an object's data
- #set reference -- the object to change
- ##to anything -- the new value
-
- resume: Resume (continue) processing
- #resume
-
- stop: stop processing
- #stop
- ##[saving yes/no/ask] -- Specifies whether or not processing
- results should be saved before stopping
-
- select: Select a zone or window
- #select reference -- the zone or window to select
-
- Class application: An application program
- Elements:
- #setting by numeric index, by name
- #zone by numeric index
- #window by numeric index, by name
- Properties:
- #class type class [r/o] -- the class
- #frontmost boolean [r/o] -- Is this the frontmost application?
- #name string [r/o] -- the name
- #version version [r/o] -- the version number of the application
- #status idle/processing/previewing/verifying [r/o] -- the status
- of the application
- #pages small integer [r/o] -- the number of pages completed for
- the current document
-
- Class window: A window
- Plural form:
- #windows
- Properties:
- #bounds bounding rectangle -- the boundary rectangle for the window
- #position point -- the position of the window
- #class type class [r/o] -- the class
- #closeable boolean [r/o] -- Does the window have a close box?
- #titled boolean [r/o] -- Does the window have a title bar?
- #index integer [r/o] -- the number of the window
- #floating boolean [r/o] -- Does the window float?
- #modal boolean [r/o] -- Is the window modal?
- #resizable boolean [r/o] -- Is the window resizable?
- #zoomable boolean [r/o] -- Is the window zoomable?
- #zoomed boolean -- Is the window zoomed?
- #name string [r/o] -- the title of the window
- #visible boolean [r/o] -- Is the window visible?
-
- Class setting: A setting
- Plural form:
- #settings
- Properties:
- #class type class [r/o] -- the class
- #name string [r/o] -- the name
- #value anything -- the value
-
- Class zone: A zone
- Plural form:
- #zones
- Properties:
- #class type class [r/o] -- the class
- #depth small integer [r/o] -- The depth (stacking order) of the
- zone
- #bounds bounding rectangle -- The bounds (in 1000's of an inch)
- =========================================================================
- Date: Mon, 29 Aug 1994 12:12:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
- Subject: Re: Eudora Notification
-
- >Done. I just cobbled together an aete and threw it into an osax. It's not
- >even stuffed, it's so small. It generates the right code, but I haven't
- >tried it. I don't have a nice TCP link, only a dialup account, so it
- >doesn't work well here. Just put some code into an "on notify" handler and
- >see if it works.
- >
- >Good luck, experimenters. Oh, I've also included the MPW Rez code I used
- >to create the aete below.
- >
-
- Excellent. It works, and in the background too:
-
- on notify(messages)
- beep
- end
-
- But how do I extract single message items out of the messages parameter?
- What is the format of the messages list?
-
- Roel Vertegaal
-
-
- +----------------------------------------------------------+
- | Department of Ergonomics |
- | University of Twente |
- | P.O. Box 217, 7500 AE Enschede |
- | The Netherlands |
- | phone: +31 53 89 33 24 |
- | fax: +31 53 35 66 95 |
- +----------------------------------------------------------+
- =========================================================================
- Date: Mon, 29 Aug 1994 07:44:15 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Sean M. Joyce" <sjoyce@HEIDELBERG.EDU>
- Subject: Eudora-Sorting incoming mail
-
- Hello.
-
- Please forgive what appears to be either a new user question or a FAQ.
- I've looked in most of the FAQs I could find, but haven't come across the
- information I'm looking for.
-
- A while back on this list there were several posts about scripting Eudora
- (including the freeware version) to sort incoming mail into specific
- mailboxes. Could someone point me in the right direction to find such
- examples?
-
- TIA for any help.
-
- Sean Joyce
- sjoyce@heidelberg.edu
- =========================================================================
- Date: Mon, 29 Aug 1994 14:18:46 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
- Subject: Eudora Announcer 1.0 Script
-
- --========================_14526749==_
- Content-Type: text/plain; charset="us-ascii"
-
- Eudora Announcer 1.0.
- Copyright 1994 Roel Vertegaal and Ronald Leenes, University of Twente,
- Netherlands. All rights reserved.
-
- This little applet should be dropped in the Startup Items Folder. It will
- get a notification event (in background !!) from Eudora once you have
- notified Eudora to do so by using the Eudora Notify Controller. When new
- mail has arrived it will tell you the sender and the subject of the new
- messages using the Speech Manager.
-
- Thanks to Jon Pugh <jonpugh@NETCOM.COM> for his notify AETE and mark
- Alldrit for his Gestalt OSAX.
-
- Requires: Speech Manager, Gestalt OSAX, Applescript, Apple Macintosh
- Computer, Patience.
-
- This applet is freeware. However, we have never turned down complimentary
- copies of software. This applet comes as-is!
-
- ***************************
- R.Vertegaal@bsk.utwente.nl
- romix@bsk.utwente.nl
-
-
-
- --========================_14526749==_
- Content-Type: application/mac-binhex40; name="Eudora_Announcer_1.0.sit"
- Content-Disposition: attachment; filename="Eudora_Announcer_1.0.sit"
-
- (This file must be converted with BinHex 4.0)
-
- :'%9eC'pbB5""EQj[G@jMCA)J-5i`,R0TG!"6594%8dP8)3%!!!!Gp`!!!!#pV&0
- *9#%!!3!!(IGb6'&e!J!!!!!@!!!0!"4&G@4[FQ%J3@jZEh9ZBf9b)$%Z-!!!J!!
- !!!!!XZSJUAJ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!2rrrrp"8&"-BA"XG#%
- !US%JK+U(R!F!!$M,!!!!!!!!(A%!!!!!jPi!!!!!!!!!!)*d$F$9-62m"8#r3Cl
- F%CjpANCl[ml2c)(Afb62+lhb'YRDfmZTHI(eDj!!TCGGlcI`&YkEAhTHqE'Vq1H
- JLEd,fcD)GeUX*MEaRH4hjNGj6Ya'@i%0lrTe26`*p0Mfk'CN)I!iJ355KIa#)*N
- XC!E*,`6L#4lilE`X)N9%Cjj-0"&rpA#c'dkid9M5EBQe4C1KqKk,jlUKH$`@G`&
- c+[P1VQLVMm@$ERNd#S#k80`G9ecUeX9D9eX!+&mNrd8,JUf4jL0HS4&,hrhAH
- eHkh*6(UU,C`-Z8&hC9-i%LTfjc@iUf0YEL6F((,$b6&ZSLR@&UQ2RTVdbPU$Upd
- 'c#'FR(j'A4$Y*pf'F,6H66D&h)T9b9!d%Bj&J4#Tae#3!*'kkY@*C+M&R4910!p
- -BmCD3kBf%Ui,4HX`KPAH-(,IQa,M3cJHre-NlmE)[f'j4"Y(E4KHf6Dc*ZE'fk3
- 6m#94&`qh*YeJDbZD#LBaKc(Hb&VD%M+N1+*`0*%-4L*Z16"#e4jH-GVUArE2"-P
- qB`TQ"a2e5mUV`E&aTI,23j8r(j04C*&2bBJdFUSjMHLhb)r+ET5M%9J4Mpc%+HU
- Z%!ZY0%+R8AKeSM`EU3!$YXB6!F'HDZ$#HE2%T%JbdK0qDa-1kQLBkKSL2mF[$
- 2T4iD!4S6YK-Ii3l&4k!Eh#%32I#hbG%)-VfMCkd4@*Gj@B[r3RN1JT'Pe,-a**a
- )*PT$SEUQB$)CcjC8HbAP+0'84kV&`eD8(k"mp1C2*K0e-J(d4Q2T9$F4LS6UNY!
- 'd3H$l5i-4S108!,T+ecEPJ`Pc"JGr!ZSTdD3!*e4,qUY%AJcmP%hISIk1!K1,k9
- qlmkST6(H'JmP3Y&NYY"dZl!a[XJ8DZTMjZ8M2rrCahq@+I@Q-fLX@aY1JQ9"dB*
- kNBP3`QM8Hr-+V3SRNZPCpF6r*1UV%@3TGjMI9RaB+2Hf326&[am9DJ4TL1&d-Vq
- Pk@6bAq!0GcMeT`(m*VqKNE#QBM#%aJE5))d!Q0f3!-qR`IbkTX(NQqIeN!$2Ik)
- Kj0S)#iZVkfSLFc$Y)R`CDDUT@&DM!D&LAVSE[qE`Drp1kKabbFIY0*4IY4(kED'
- 'TU'QR4abq""qrmQr((j9Z2'k#1-J`m4m+Z#$0KqNA+Ff&P[4%)`N0!d`SYN(-aa
- Qd6"-I6LGSK&i$1J$$KfJ%Ib+ME#`1,%k%DZ2a"U$LHCiKJ(#"NdM6)Yp`0#4!4T
- *-fRUqhbZa-k4RNfaUaG&3X%%YT[d0S#a"f@&LDpfJih"F(5SahYq4CKp#[kRmRi
- Y@jI-T$m0iCIj*GjRmmZB56#d)RNjpUGS@b6#[!i,bcU5R1+AT)9p%ZbAi%hK`aX
- 5[#9Y&H)rLNl6#,+DXTIh+0iV%(X%iM6mLfLd4Q#&28,fS$%d9L0)k`2aLe6-Zff
- %KF8cUkYD3KKcCK,ba@S[!k',-rT#9-+l0*9Np)*iTm-lb5fP2%KJ0,5b*C4)J#i
- *,emC@VN`R9Hm5fDi@qJm0V2R"+R8SP)-BKbGVK&B9@N92i2'D`5@N!$8$j'E3"-
- e!L[UjI2T6*UN%AL8e4#j(6E[J2T%@fUaCdc+i'JkLbC,i1%iT(QlcGZ"%fTE@+e
- TFJE(SE0TLNCJbCDB#p9kJDED#$bN'CUQQJjkB'@C&U"TXMM0L`Tr0%daS(l+jHG
- TZSh!!jfYDES"cF'U9KDJ-L5%NS#Ff%QHjaaqM[U88Qid&QYS563Q+,Fb9Y@`%"Q
- 0P6@l,jAR8lRDRb[%P))bYGf`mlm!q)6bC5"B-"*1H+eq@QD8X`#V5bLVN!$[EId
- PTkfD-FYE!I[kCHhmIrf2VV[[V29hLY-JNdM[kMhI"h'N6AHfC`J)'l$K@he4paT
- Q0G+-D[,-@%Y,@c5pY#FQ(dAdFZ$Z*YS8E'JeM2*"2FqLmkQ0[N"hU1`bG2c,A4b
- URl8b''miA[mhZ[MMXG$rTBK``+,6mCp"-c8#6`ClBfqB448D!E4E)9r)Ik6Cr!F
- EB@&aA5`HUS22dlRE&D3hQpP'ERT6(rkp`lrr5+XYrS2S9%@R6[h1iGp4re*b4+F
- %@D6+%DN5@#3Y,%`@cD'j'S%hV`(BaHE4I)h!ZXM,Zh31,G!)[,B'd%$qVF1rr8$
- q&TLGBb!@ZiAmV+D&TJr*9e+94Z$eJIfAIq2`Edk-4e19%G0"f)prlH0INe,mV!a
- jIZH3!(rPm+pSB#N&2+-R6Bjd0Nd0LqCLc)[iPjS@8EIc[D8m51Ib,fJa9I-cQXi
- eUmeBZSKU,+S"f")k6b2`9TZa'-05@UB4H$$M--6c,HL3!%8Ad)8DJ8HGFGJG,U+
- ,03*[3aQ("H35@Ui4U(()Rde6HC[0fla9ScUNDAN'jfbkP))DJEH86++cqHG8Db2
- )l$beCYcBLrKTKjqQ`D@NkpVLF5beKMICY''1aRM6[8fL1UVA#,cH*Y!NhNSK'd&
- Q5`SCLNh%BYB3S)CM@e+p!4e(%rJTDV34C,DN4J1+KBqD!Y68Z59Gh%R-RcRm-mS
- Y*AmL@Jpq@(3KrQ(qUDD`)8`CH(3C0@X%hV$+)"i4DY%)2-,-T`AmT-e2'X+dD@V
- *i-bR+-8d!QmqFfJqra1efJJbK'NeBjK,mrJR$[rN)m,%-Vh0SFX*kqMPTVGC0)G
- r6!NE3BB`#62l#NKd-N$*Bi5*'p!bQX8rSMBE3BB`E3B8U`'Y#0#+6X)dGa,QK`l
- rN!"kP&+h41ePG8RCZhmU#-X-p&LXmq8@R3IBPIb%TT@b8"!%l5,q!DhL,3j#%@@
- a@F8CTYb-4fc"BV9S09fK%ALJjp*5rNGD`iml#!Y,bBCaea*-L[p)pQ`[9iQF4@X
- !I#9rAp19CNbLPppcq([(H-hIPq"aQHF9q(q-[k[TB`B1UXQ21IcBHe2pVJ4E*(J
- #@b*8q(qaFl(TCb3FQHmir*erdhY0e3E[9"V&hhEifmHh&FA2b"4q+D-EMIp9Y&B
- Mb2Sbhq*[+[k@q$,I&)Leq+qMUc8#cjHa3FleG)d%(UX%mKYd,6rU)2`EUkj&)ar
- R4c4p[*2m$c[m-28YT4jBkQ"@bFiXU@S[C6'-I)XI&6Qi*Q2$E+"2@23*Y2**ZNi
- Mm$49PZ6Vk3D0)'Y$I#T!RqS8R"XkHhl)iBHS9bPePm95TL3*-k,V!2CTqSa'i2Q
- BI[SbICCZj+r664S*DhEDd[NlZPNMm(Bq2cb6cr'$QMj(9S9Ahjdq6er3#,b@rI!
- T(h$iJ3r'V,(AHe1$J8kh"1J@0+$JN`N$(j6Ch@`D&H*pNHp(B"U9r+edQ`4HSr$
- !q4r`kfVdYSbl&+$EmC0'aAC$SrG,ScFDN[A#l[-PLlk%bVqR,fX%RQIGLhVaeq"
- !)!$q(G#1%I$!NmDr6mBm@cN"fc[Dk(RlBA2`--TVd!+4,,U6lp0dTk'X0,Q"0QS
- %hR4l`DHlLcGVZSXXZBq3!2aAk'k0)&drPZlK6CVZ-5Z,j1qPVfS%[M0KU2HQXIa
- 9q#DEEB4q'bi`V-"0"VXI60llq&j0paNV%AQqKqqQVpPm6pTSM68d*#+aD+2a0$+
- QjYeLLAd0V[&Ak"rSIKZKhfj0a"SddKk6B(,6!`&k)%[C(,SIF(I4Jlc44LK`iDL
- Q"c[hr`d1ErL!SMQm8GKiVl"aXaRH-"LJAqFl0AhG$!pj[S1r6!rCI-H*iAeCT[%
- 3T[(hp$!pBL2-$1pK-l`4f#`H$G#M@4R)S8F!pbAk"YpZ)m`-laZGDm9Y$Yr@0Ec
- ECAKhb[#qDM"aim#h1RcV"jL+0`RFhGPYMlpSmaI4ZRMpLMG,mFC1lEl&i9[q9E[
- j2YN9[Lji0aRa(Jr0q5CpLlp!hpC)H'3D$lIL1raj6GmaBLlja`LVff0'8mI$$rJ
- HBI2lRZPj2%b!ccRmZ5j0rEiC(9aIHMa!M`ZCi,2+(,jVHTS-4q3IDBY'i28d'8l
- (c3lIh0A6&Y-6R&lk3B"q)$e0-cVpH@RX@dDRCm"EH-+L*e$j3rU44Z$Tp!bD`Ap
- (2eB)S0-rrMmk2F9Vd+)IiIm6aVVc%k26dZ3rdC-DJFHJ'A#!IXShD[UTd@R*rib
- HdJM5p8YT+hp@deDMdj*rQRkZ%AJk240,q'GS'ceM)mcSp$BclcN`,MlYidq6d[5
- -D@Fq9[pIm+FdrF)iDT,r*Ie+)r$Uci&[p@['j[GVSil)mr9m(Ih'jZY2U10e)RH
- rJGapNTkPhpS)-qViV"R'3[Jd[`[3ll+%cU(I!Zi6p([qZ)d`Sikr0kbZJY0fVF2
- AGURMaiA!0`L"If9DV+%PI)f2XGXUrT68rGcd!Vq%ecZm[NXe2bY`6jNfa'qifZD
- VXkTjSa3rfDQDkab-r9p9mbC4c5m)hVH0DPi#eI`$rC(AdR-D#8r",S'apMbpS"&
- i2F(IikXF[UT,`9i`SeN1HfplJ,B,L8BB9IbM%Dpk'!Xl,0U"STf%+ifG4VcUUCi
- r4VX9!SMAEKaF&2e9['T$F"T3K!TclHBeD0%Zr&rN+c@pD"4-1Ye$Hc8#6c,UiG2
- Xic@DpKN&Nra,p,*'N!#ZAd2l'EE4IU0JNRq&$QJ%RS+&B#'YTS0db%DB8E#$CYj
- KDZC92PiP#RE)Y"1"2r3UVp6dUP%`bEI6DaU"9pm#RqT2[%,6Rib#)FpYR+6AE@i
- lS@"`PA,SG8K5JYkJ0ff%'39l```M"QIZV3#pP59I$Vd*Z$LpcCIE#$-+pVCKGB+
- 5h1T`DjH#A5i+YN*Br*TTF4@YjTL2Bk*J+kAZJ1QPRN)FG6MDT@"A#0c,TSdeX0Y
- DE'l*+YJD+GlEU@!4Kb2(&Ha+8E#eJ[HF8CEe8,$$&Kh'a2p-lfJ%RV+XTrAF6(p
- 4#+!XIrN2C5Ncb[)1rKemQDB1Sbc5k4&+D33HPGI$-f%1Df+M,-MM6&*TL%DkrMC
- PFC0@PP%@bIZ8AbZI8CCVk$CZ90e8MXf0'@94h3a&2NRAFi12'k!X#NH4dXi0G+[
- UcL'YZKYPNAbZkU'9Gb[C$IEA,FVQHUeXSbc)FahA+XIQZK2+8JZT8!kN)UJ#5YX
- Fc#L,#TKKI)CZ8RN"P5I+iR%M"hVRidY92LqhqG+-XUKm`f$BCAb*`jGd+FYb8CC
- kX&Me-#hH!UrVBKr$@9FFNMUrk3A@)erNm%9GbY)NF##HY(%EhFiAfRaK9PPJB@T
- +G5V,"3jIF&aCF*KTBG5@+Z$cY5SJY3#!Gp!'e91VRUD$1q"T,A0ifI%1F(4KdGA
- SS*IUV49Z26-Hke)q6r&5QIPjJpmHr$5l6UBcc@21UT6P*pY6UTdf1Y8IfifZ'
- D[pVG#VHBUP#GV&9Kjh3A1lci3hp9R3c)rRbZ9[dl)4Fj[-McF3@bVIBbh,KkZ@U
- 6XrKF%GaUi9MIc,9RY4UJ"R)99fSeJ+aTASe2$9+$YF)jT1P-m8+(&hki-UV"KV%
- i-PC$!QT)eVY9!ifZje#9FLhPSRkS'UB9cKC&eh-SKaHSiBV"cS!D$XZQ'1H0KK4
- ZLja@TGebFh&X'[F1)$26&@eA1-C8TkJ4@Z%#8V3pKrUVNHT8V8BD-FfK3M@+cp&
- Lmd@KeC)r649TFFlNqN(Ma'Qq'QhcI&&ZA#*U"A0GN!$cU*mD`r1d5Kmb)XpcHBi
- DDr2FY!c(-Bl--46$(T5FiMQLUf1KUl09X5UaH6BkDiM(@V3U0P6"46&Aq"Lh6cQ
- U"$Lc9#R2Y(N@F,$3B(FS06ML`Xh`m3cUPX-cKBR3&)e,-SbR"`DTe6JZ4d"U[MG
- iV8kh&%kke"PU[&CRC%m$eB5!QS#VdccF*aKQb66!4q(2H2`RUM1e`X@Ji(@RA$8
- TS#EK4M@r2%["Si"RiRq@QUa9qZ349plUl)!k'bCThhNi$X2eDP+@-Ga'*)lKiK*
- 569&608bCc+'MQKD!2cDB#TF'FGXQYq5e)06+F$hiIK4j+[l6Z8bVp,8M$(09&X!
- #-j,F4E&%)P`E@BdMfFl@%mQfKSDM(6$ZjK@A5h#1-1M86Y@Fl["dleSYFkIQEC,
- MX[PUNlGN%9IPDSC@jCR6Xl&UTTUP&@l54#d'd'K9`G1dUM!k)rRCDSj@Xih1Z$5
- DTkUj0Nr0kJc1[!4j+"@TH6a&UhP'Cj!!jl0jXTT[mpNRG'Dbk-amk-GCkKbe`1D
- cXMU$mcFK#Sk8HC+2*iR1,!$1Q@SK6l6jc+c1,-`DbMc"aa2)Pm-6K596K#@iX41
- G`8fGUQ3)#QlK4'FNAf@T+["KNF)+XXMdJ&-lY6LJ&N1d!RMK34jlL!SA$BA2aEp
- De@L&8aG"Jk'ZPJ68%XK[GcGB'fY,TS&`cDE1ic1d1Lpl5kH@"Y45h'XkEMc8')c
- ACl[L-f4@)*GLV#jDcHUNpHN1Rrl2Y$lpI9T$,R(iU*BTV)R,c%j86029"HT#(UF
- ZdJURFP1pQR(UBR@*9ZPcX@,F*jFkA0UeE@Q&-cUCA`Q9UZ8"YEac+m*GQHM(H$T
- ,ADU#@PeUJ1"JUpU!UX9T3KpX1@jEY$ND@aR0,$XiMKE`B1H)5a`ZS3"fbM6#kF)
- )(+*TKBXqkA!+4PQRB#28'G!TZ1JVGVMia0MU1aXFkr$BrpDJ`KQK#[%BV8*'V-U
- SLNHV"LkbHA6kqKmRlFh(VVZpkhr93"EX#H#GSaS9V*6'6(kH#LZ))DlX6(k1DPB
- 4MFdaRCqT@K3XL4BcQ$)Ujp-F2ZdMcGBUDM$,BDb2FRK8e`k,K94)1*0QUeJ!S,e
- *Zdh"K"Z-am-V3[@HhQKeQHN(&kKmUX1RIL3`@M8C6&bTmNL(4rjhaN,6,4iM!Bi
- h&9G+CSNi#HJi[`$h8ENm3VALr2`8GEQ+Ui4++Kk"&4)e16bFKr&3GRN)$hCiq,q
- rU1$`X2pm,X(QS9dAr!klAAGN$JmjlS$BM!h3Hk%JKZG$c2QjG(@6YqEi'#qUj+R
- ,UAX"$m+Yd%!HS0V8#Zj[)rfhB3cmhdI)!i4+EG5G6qC#lXGpq56Z`ldG2[NMG)F
- ,MjrU1Gc[a+Q``hhrl5M3iC2qjk'K`hf1AMBkh2[Bi@+"@J'ISCal84RhT'PF`2Q
- FKp[A"YBik%abJ"ffEC5EQdmE)&jQKXd&*P0YFhlk[3-Ed"qHIpYSb9`*fa``Q6D
- (R40LB"mAJjlFRfThp+,mSTfl5RDr@,*Rc0ia&3mYUGT`'CkMUALiDZ0Gc81'9$a
- 5eBqQIQ9MFp0!mJ0X50(1PdTf[ebbjqk5r@-U[P&9Y219NYd(*(e`6-8hPe39&Gh
- 62*VblSf-T[`,UmlRTr,c9&`%T3G-b9cZVPDU9CcM)2hKb2)BlUbIZkR92SDeQkG
- @`m0L[m2qVM[)lX,$P9"d(eX1qcj!FYMk&bHb3+h#2Jhr&fkSBNSa2C!!5U@1T$V
- SdG4IF,2d!jbjE+Hh9*l05Kj'LF8L0JllM39Y!mli[hBUPECfIDNMb!$r3a[C4QI
- 'G1h*1E4a4m9$94Yfj[DJlKYfjHiH1BK1fA$KLaGGH%(4RVhl0V`8S"iA)EAIT%j
- rC@6&3qG6miB$(Yj"$fq``@X@R%-'ThP)'UPm`kZjJmJpLK#NJ[Fa"VeEhI2GkUU
- 0qD"b!P41[D2kT[kF1UbZ8'Y5EcXT2-Vc,rU5Pm*CJ6rePVV5PhU,V$ae*4DYe*Z
- T0jc8Qar5-rA'hjc9&"lB+9"A8,I8kkNrT9j,YDGHG9+[Gh@$Gh)qk-C*[IE4EZZ
- NfMrD2Th8Uqr[Q`9U$I9@3p3%08QGVDDTXY5Ke-(8JG3VUIfTPp9LY83Y9FY9VBU
- PA[+P$P%h1h8`E9ICU30THmP1[C)fN!"mUIfL*[,!c&pG+M[e8TFYd$2e0Y9Xf!'
- cZA,RVYd[lYQlBPr45md[lpdI)+F%DRrJi+%@8p*L5KkTf[JU2#%E-P(ak2R8E@2
- &Se9hE4J"A4MaP4&hMm#5d1YmmM9"&*)L#[[8ae*l8h[89@TYkN8lYDpVcp3+9q$
- Q9(Qi@QFTA%e6[p4Z+iAAC&3+cpeB+6ah8k#ZNQ!YZ,iVYC0'TRDNYYZTAHP(L@b
- 8I2J#NThDdI8kN!#GfYle6Nr2e)Yd#Yj9)0SKNBVJS+-"4#MBKC(lUSS3qEh""r'
- k'!!#llc`!Nk$V5[qa`0XH&PSXc[ZV,2'Zi[aESKlALLHK,%@M(MQqZ*B0"LTGaH
- %X2NQaVK,S[!riSP`FVABXc8VXAb'aVL9)3K@2!+m4,&EMUH*iZ('TQ3#"PdL&)G
- I8UaeM6ae&JNRNa'mf5E2Q#A6,l6K5XHYMmGD@f'VT'mBUj2"H,+YeCf(jpF5k4G
- 9m-"E%XirHQX%G&"HQ3XhT*pHF8-V-!Gh&1"VJhA0MA(-YYiG1[3dirQQCbiHT2H
- `@P0`"9iVmr$4FlSDqP8IFa-aYhDefiE0U0'E4,SBKN+iBE8l-aC0aQ14L%aM+9B
- cmE50JAl-'`,a[6NP3`LNAfRNk,Q#PcB+,"b5Y0G(@VU2G[rHBe!HLB,4CMcm&A2
- RBqU,fKUEh#QAaD+Y5*499Y6-V&TBM2mdlb8ciCXhj09ZH890KGGk5c$H,2bXMf0
- )'4$4*TJlEP9eq6,dZ$J%`3&a*lrIrTKhJFDBYqM-fhAT**!!kQ#laa*0B%T,+ej
- 0!qJL-"3[jBAN[EUqk4I6mQ$C&b!1C*qImDjT%%Pp)IkMdRAbVTj,Gdr(MF$QGZ3
- 1i+mUcq2$*Ei991)VRE,arUr1(MPNl&bT+*fbk8l*ZX9mq+%YM@k*cje5eaT0PKr
- LMQ&c0pirl,U43qDA0H61Ii!l'Ud9UX!hXTMIU,bNXUd5ecXPJI0[,*P5@98c$pf
- Zfc4Ne()hd*!!fqUE6TZI[(485@$cc@k0Qr[-*LSF@ND&kGa!j!BZZE'NMlYm`bA
- 6eY98MBTb4fG(PBpacAaU,*,1j&A$NLQ*ZYCNkp"04G*GBbr8"8TJVK2FZde&Qpp
- B9JA%C+B(e!d89+QI[EK#lTbaSFbE@6RFbp`LGC,S,NmCT9p,m#SXV$&qh$LX`V1
- ,eq,HbB*9BIR*M`IqFR-9&I5KGHi`+LXV*lGphEU#kkNXpa2NqUmPebV$0Z05J99
- !"IjF+XMeNeX!9pG9Y+l-ZTV@qGIM+D4Ck'-ZATpDPN[qHRL56k"2R&pikj2dld2
- F(8pNV0f"aDmG,ZCK("Yd`&4,`EGN[%6'kkBcEeR,[!12,lAMIaMr$[a6U'(8TS$
- 4!Dc$h9([!`jH+pb#H"hbk%(kk-$r-(AIedkq(k*2KAkppFe)#ElmpjmiDKF"kIc
- bh`A)aja`bGN*YRAlX3lb+E$e'%!lEAdDb3b!P!-[#j!!,Xm!H19H[3'3!2)McfF
- "[2,R63-#`)cbjlCN1dJpei(b3#!$F'6V0T4[b3*dE-er'Z88`&Z+!T!!6eZfST`
- -B'!EY3I`%CN1-8F!5,PAMh*!5[N@Vel',!!SIaV2-RVPhP43[M9GlSd-j9XcjA5
- NAFUhC-ZIlhL[r,PYamTPJXI+CB,E1cV,+Ar,Y[EmVGPbmca94lBm$G*CRQ&GpLY
- 6kr,+HVT$#fENl[(IZ[kQmV+KlV##@BAAM5JBk3iUSh9UAIk@)6ZQYkmp$0e*-Dr
- PkDNK(8-16fqI[Q23&Np)j*p[HQ*`5V+"I+r*pLhEK*IjJB#R#Gbqc41,)pZ2H#*
- a*2mj'9fqd!`FpIMhG$Z`mN&"3+1VTcX%qXJf,ddGfl`d4#Jldr3Xf6cfkHeAk@9
- Akrp+CBI(#d,bXQD@eYk9B1rVNE'Al5!IeJljb`Z+SmQ[AV"@b,Z%kRRViM6H+V0
- [NJUN19-YEmCk$p#*Di)lU25'A01jklmlP245rZjCJ5L$R"6d&0"MQlZXZ%G(GHa
- KA$`fp8`I1IXDL&`[@6+4Zce4Pm$e00dV5b(LKm89![$MLH4UG%R2*PS6Z)'PAEM
- $N!"Ri!l0V*U&'d&kCdEP,1alUTGC$Y9JXabU)V-DUSRKZJKk962#G3R*9b+@r!9
- 0$A)BS"UUjef!j`"8I#QZj4"I&3b"&+4ZS(@-Qp&MQSZANlbPdm[G6JrHFD@r5A*
- M(T!!XYlA5flm*C)cG5@iA-PJPk3A9Lqh!0KiSi"a%e+b1(e(LR1&NLJpH2ZM"U2
- 8km0JPm*@bf#AAQ2@A5q(pa)bZA%hGqE1Z!ApE8MRrS$FV5p[NGb%S1R)bq'`2G2
- 6",cKB#TGQS!(9SMq2`#K6`!!:
-
-
- --========================_14526749==_--
- =========================================================================
- Date: Mon, 29 Aug 1994 08:56:00 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Thomas <jthomas@PLUTO.NJCC.COM>
- Subject: Re: Eudora-Sorting incoming mail
-
- Get the commercial version. This is its primary feature and its VERY worthwhile.
- Just define a filter to take mail coming from or containing something in any he
- ader and transfer it into a mailbox. Its very obvious how to do it.
- =========================================================================
- Date: Mon, 29 Aug 1994 08:43:19 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Polls close on Wednesday
-
- Just wanted to remind everyone that Wednesday is the cutoff point for turning
- in the newsgroup creation polls.
-
- Currently,
-
- 76 think a newsgroup should be created
- 39 don't think a newsgroup should be created
- 4 don't care
-
- 82 think the mailing list should be continued with a gateway between it and
- the
- newsgroup
- 28 don't think the mailing list should continue
- 7 don't care
-
-
- Cheers,
-
- pf
- =========================================================================
- Date: Mon, 29 Aug 1994 07:56:50 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Robert Bogar <robert_bogar@QM.CLARIS.COM>
- Subject: Re: Apple Script Books
-
- Reply to: RE>Apple Script Books
- Recommendation for two books-
-
- Tao of AppleScript, 2nd Ed. (by Derrick Schnider) if your just getting
- started & The Complete AppleScript Handbook (by Danny Goodman) for a
- reference, would be my two choices. The Tao, 2nd Ed comes with AppleScript
- 1.1 & offers a chapter on the Scriptable Finder. I found the Tao very
- readable, and an excellent starter for beginning scripters. The AppleScript
- handbook is a great reference book, but is a little like a college textbook
- in it's readability.
-
- Robert Bogar
-
- --------------------------------------
- =========================================================================
- Date: Mon, 29 Aug 1994 08:34:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Apple Script Books
-
- > Are there any books on apple script that people would recommend?
-
- Well, The Tao of AppleScript, while being mostly fluff, was rather useful
- when I was a bare beginner in AS. Now I use the AppleScript Language Guide
- (English Dialect), which is sort of the 'official' reference.
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 510-540-5535 ext. 280 Fax: 510-540-5630
- Official spokesperson for me
- =========================================================================
- Date: Mon, 29 Aug 1994 09:44:08 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Exit from a handler
-
- Greetings,
-
- I am developing my AppleScript 'applications' using HyperCard as the front end.
- I would like to test some condition and if true exit the handler:
-
- on frob()
- ...
- if abort() then
- exit frob
- end if
- ...
- end frob
-
- Is there some way to accomplish this? I imagine that I could wrap the entire
- handler in a try form, but this would wreak havoc when additional error
- checking was needed.
-
- on frob()
- try
- if abort() then
- error "Abort condition is true."
- on error
- ...
- end try
- end frob
-
- Anyone?
-
- Thanks,
-
- Michael
- =========================================================================
- Date: Mon, 29 Aug 1994 19:02:20 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Anguish <David.Anguish@SIC.ADM.EPFL.CH>
- Subject: Existence of File/Folder
-
- I've been playing with AppleScripts for a few days now and I haven't yet
- worked out how best to determine if a particular file/folder exists in some
- folder. I use "on error .." but this messes up use with MacHTTP from which
- I call my scripts, any ideas? With much thanks, David A.
-
- __________________________________________________________________
- David Anguish SIC/SA, EPFL
- 1015 Lausanne, CH
- Phone: +41(21)693.4581
- (Central European Time)
- ___________________________ Eudora F2.0 on Mac _________________________
- =========================================================================
- Date: Mon, 29 Aug 1994 09:52:47 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: A different file existence question
-
- Greetings,
-
- A frequently asked question on this list queries:
-
- How do I check for the existence of a file?
-
- To which a common answer is:
-
- try
- info for thePath
-
- code for item exists
- on error
- code for item does not exist
- end try
-
- This is great for files, but for folders or in my case a disk. The 'info for'
- command incurs a tremendous overhead (a folder calculates its size which can
- take a user perceptible time). I have not found any additions that would check
- an aspect of the folder thereby confirming its existence WITHOUT causing the
- calculation on a folder size. Anyone?
-
- Thanks once again!
-
- Michael
- =========================================================================
- Date: Mon, 29 Aug 1994 13:20:09 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: A different file existence question
- In-Reply-To: <no.id> from "Mike Shaff" at Aug 29, 94 09:52:47 am
-
- --Mike Shaff wrote:
- >
- >Greetings,
- >
- >A frequently asked question on this list queries:
- >
- >How do I check for the existence of a file?
-
- The best answer that anyone can give you is to get the Scriptable
- Finder. It handles all of the file stuff you could want from AppleScript
- (well, mostly all ;). It makes checking for the existence of a file or
- folder simplistic.
-
- -Hades
- =========================================================================
- Date: Mon, 29 Aug 1994 10:15:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: A different file existence question
-
- >Greetings,
- >
- >A frequently asked question on this list queries:
- >
- >How do I check for the existence of a file?
- >
- >To which a common answer is:
- >
- >try
- > info for thePath
- >
- > code for item exists
- >on error
- > code for item does not exist
- >end try
- >
- >This is great for files, but for folders or in my case a disk. The 'info for'
- >command incurs a tremendous overhead (a folder calculates its size which can
- >take a user perceptible time). I have not found any additions that would check
- >an aspect of the folder thereby confirming its existence WITHOUT causing the
- >calculation on a folder size. Anyone?
-
- Long term, the solution comes from the Scriptable Finder. Scriptable
- Finder comes with System 7.5, and is available now for $25 from APDA if you
- don't want System 7.5 (which is available now in floppy but not yet CD ROM
- format).
-
- tell application "Finder"
- exists disk "Vashon"
- end tell
-
- quickly returns true on my system (which has a disk named "Vashon"). Likewise,
- exists disk "missing"
- (I don't have one of those) returns false.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Mon, 29 Aug 1994 12:40:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
- Subject: Re: Apple Script Books
-
- >Recommendation for two books-
- >
- >Tao of AppleScript, 2nd Ed. (by Derrick Schnider) if your just getting
- >started & The Complete AppleScript Handbook (by Danny Goodman) for a
- >reference, would be my two choices. The Tao, 2nd Ed comes with AppleScript
- >1.1 & offers a chapter on the Scriptable Finder.
- ^^^^^^^^^^^^^^^^^^
- [stuff deleted]
- >Robert Bogar
- >
- Does Tao... come with the Scriptable Finder or just explain it?
- (stupid-user question...)
-
-
- Todd Main
- Motorola Dynamic Memory Products
- tmain@fsrampo.sps.mot.com
- (512) 933-6143
- =========================================================================
- Date: Mon, 29 Aug 1994 19:51:30 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
- Subject: Re: Existence of File/Folder
- In-Reply-To: <m0qfAcB-0000H1C@rz03.FH-Karlsruhe.DE> from "David Anguish" at
- Aug 29, 94 07:02:20 pm
-
- David Anguish wrote:
- :I've been playing with AppleScripts for a few days now and I haven't yet
- :worked out how best to determine if a particular file/folder exists in some
- :folder. I use "on error .." but this messes up use with MacHTTP from which
- :I call my scripts, any ideas? With much thanks, David A.
-
- Did you try exists() of the Scriptable Finder? This should work fine
- at least for normal files or folders. If you have to check for the existence
- of several files in a folder, you might also read the whole folder's
- contents and then match your names against what's there.
-
- If anybody else has better ideas, I'd like to hear about them, too ;-)
-
- On a sideline, has anybody an idea of how to check whether a particular
- medium is currently inserted in a drive without bringing up the "Please insert
- volume foobar in any drive" dialog when it's mounted but not inserted?
-
- :David Anguish SIC/SA, EPFL
- --
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- "If it doesn't work out, you can always kill yourself" - Cynthia Heimel
- =========================================================================
- Date: Mon, 29 Aug 1994 10:30:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "W. J. Proffer" <proffer@SCUBED.SCUBED.COM>
- Subject: Re: QuickTake software scriptable?
-
- Buy the PhotoFlash application --- $200. Or you can get the developer's kit.
-
- That's the only way you can do it -- straight from Joh Pugh.
-
- Bill
-
- <pre>
- William J. Proffer
- Senior Staff Scientist
- Test Technology Group
- S-Cubed, A Division of Maxwell Labs
- 3398 Carmel Mountain Road
- San Diego, CA 92038-1095
- (619) 453-0060
- (619) 755-0474 (fax)
- proffer@scubed.com
- World Wide Web URL: http://www.scubed.com:8001/
- </pre>
- =========================================================================
- Date: Mon, 29 Aug 1994 19:56:49 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
- Subject: Re: A different file existence question
- In-Reply-To: <m0qfAix-0000GzC@rz03.FH-Karlsruhe.DE> from "John W. Baxter" at
- Aug 29, 94 10:15:18 am
-
- John W. Baxter wrote:
- :tell application "Finder"
- : exists disk "Vashon"
- :end tell
-
- :quickly returns true on my system (which has a disk named "Vashon"). Likewise,
- : exists disk "missing" (I don't have one of those) returns false.
-
- Now try inserting a floppy disk. Open its directory, and then eject the
- disk. exists disk "Missing Floppy" returns - "Please insert Missing Floppy in
- any drive". Great for checking in a fully automated script that's supposed to
- run overnight ;-)
-
-
- : --John
-
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- ---
- This product has been cruelly tested on cute little furry animals.
- =========================================================================
- Date: Mon, 29 Aug 1994 10:48:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Changing value in string
-
- >A newbie question:
- >
- >I'm having problems changing the value in a string. (the vInfo comes from a
- >Pagemaker tab query, if you must know).
- >
- >set AppleScript's text item delimiters to ","
- >set vInfo to "4,0,27,\" \",3,56,\" \",3,100,\" \",3,146,\" \""
- >set first item of vInfo to 6
- >
- >doesn't seem to change the 4 to a 6.
- >
- >I've tried variations of the above (6 as string etc) to no result.
- >
- >Clues?
-
-
- You can't do this (see page 62 first paragraph and example).
-
- You can change lements in strings. Get the bits you want and concatenate a
- new string together.
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Mon, 29 Aug 1994 11:05:58 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Are "Mail Enclosures" disks?
-
- >--> "Mail Enclosures"
- >
- Mail Enclosures is a "virtual disk" that appears when PowerTalk is
- active on a given computer system - which basically means Sys7Pro and 7.5.
- What you should do to avoid this (and similar disks) is to filter out any
- disk whose "visible is false".
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Mon, 29 Aug 1994 11:06:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re[2]: Receiving raw Apple Events in scripts
-
- >Syntax should prevent the user from ever having to write <<Event mumble>>
- >in a script--they claim this is a high-level language! I wish AS had a
- >proper (or even a crude) syntactic extension facility--it would be really
- >nice if, when one wanted a case statement, one could just WRITE it by
- >extending the syntax. (A good compiler and a well-written syntactic
- >extension and this approach adds NO overhead to the resulting code.) I got
- >really spoiled by writing in Scheme, I guess. <grin>
- >
- I had LONG/NUMEROUS discussions with the AS team about this during
- the development/design of AS, as there were a number of areas where I felt
- that the AS language could use extending from a 3rd party (case was one,
- "when" construct for data flow, etc.) but that was just too tough a problem
- for them to tackle.
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Mon, 29 Aug 1994 14:17:16 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: A different file existence question
-
- >John W. Baxter wrote:
- >:tell application "Finder"
- >: exists disk "Vashon"
- >:end tell
- >
- >:quickly returns true on my system (which has a disk named "Vashon").
- >Likewise,
- >: exists disk "missing" (I don't have one of those) returns false.
- >
- > Now try inserting a floppy disk. Open its directory, and then eject the
- >disk. exists disk "Missing Floppy" returns - "Please insert Missing Floppy in
- >any drive". Great for checking in a fully automated script that's supposed to
- >run overnight ;-)
-
- He're a scriptable finder version that's ejected floppy safe (TM)
-
- -- test for existance of a disk (Even works with ejected floppies!)
-
- -- get all the disk names
- local diskNames
- tell application "Finder"
- set diskNames to name of disks
- end tell
-
- diskNames contains "Project" -- true on my system
- diskNames contains "Never" -- false on my system
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Mon, 29 Aug 1994 13:59:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Apple Script Books
- In-Reply-To: Your message of "Mon, 29 Aug 94 12:40:18 PDT"
-
- Todd,
-
- >>Tao of AppleScript, 2nd Ed. (by Derrick Schnider) if your just getting
- >>started & The Complete AppleScript Handbook (by Danny Goodman) for a
- >>reference, would be my two choices. The Tao, 2nd Ed comes with AppleScript
- >>1.1 & offers a chapter on the Scriptable Finder.
- > ^^^^^^^^^^^^^^^^^^
- >[stuff deleted]
- >>Robert Bogar
- >>
- >Does Tao... come with the Scriptable Finder or just explain it?
- >(stupid-user question...)
-
- Just asked Derrick about this earlier (and updated the faq). It does _not_
- have the Scriptable Finder--Apple wouldn't let them distribute it.
-
- pf
- =========================================================================
- Date: Mon, 29 Aug 1994 15:21:55 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Denis Simard <simardde@ERE.UMONTREAL.CA>
- Subject: Renaming file?
- In-Reply-To: <199408291901.AA24347@condor.CC.UMontreal.CA>
-
- I know this is probably a stupid question for people who have written
- applescript for more than one week, but I cannot find in the poor
- documentation I have the way to rename a file. Anyone can help me?
-
- TIA!
-
-
- DENIS SIMARD | e-mail: simardde@ere.umontreal.ca
- | maison: 514-271-4136
- Etudes cinematographiques | travail: 514-343-6111 (#7858)
- Universite de Montreal | fax: 514-343-2393
- =========================================================================
- Date: Mon, 29 Aug 1994 05:25:39 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
- Subject: Are "Mail Enclosures" disks? -Reply
-
- tell application "Finder"
- #name of disks
- end tell
-
- will reply all physical disks...
-
- >>> Mike Shaff <shaff@QUILTY.STANFORD.EDU> - 8/28/94 11:46 PM >>>
- My application is trying to make a reasonable first guess as to a
- back-up volume. There exists a set of known volumes and the
- inevitable rest. A third volume will most often be a volume to which
- the user will back-up their project files.
-
- I was surprised when I experimented with
-
- set volumesOnline to list disks item 2 of volumesOnline
-
- --> "Mail Enclosures"
-
- I am developing on a machine with 7 pro. The studio scheduled to use
- this is currently using system 7. Presuming our luck with obtaining
- 7.5 does not get better, they will still be running 7 through-out the
- coming year.
- =========================================================================
- Date: Mon, 29 Aug 1994 13:02:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Renaming file?
-
- Dennis said:
- > I know this is probably a stupid question for people who have
- > written applescript for more than one week, but I cannot find in the
- > poor documentation I have the way to rename a file. Anyone can help me?
-
- There are no stupid questions -- just stupid people.
-
- Actually, I don't believe that the standard AS with its Scripting Additions
- provides you with a way of doing that. I can think of two things you could
- do off the bat:
-
- A) Get Jon's Commands -- they have renameFile; (and they're free)
- B) Get the Scriptable Finder (it's cooler, but it's more expensive ($25))
-
- -roy
- =========================================================================
- Date: Mon, 29 Aug 1994 15:16:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: K J Fox <kjfox@MKE.AB.COM>
- Subject: JABRA Power Dialer
-
- Hi,
- I've recently acquired the use of a Power Mac 7100 with Geoport adapter and
- JABRA Earphone. Does anyone have experience scripting the JABRA Power
- Dialer software. Specifically, I can write a script to dial a number but
- when the other end answers, I'd like to have the Mac speak then hangup. Is
- anything like this possible?? I have PlainTalk 1.3 installed too. In this
- way, I can monitor e-mail when I'm away, and leave messages on my home
- answering machine when important e-mail arrives at work.
-
- Thanks,
-
- ________________________________________________________________________
- Kenneth J. Fox | E-mail: kjfox@mke.ab.com (pref)
- Allen-Bradley Company | Phone: 414-382-3287 (V) 414-382-2742 (F)
- Rockwell Int'l | Pager: 414-256-9702
- Milwaukee, WI | Applelink: FOX.K
- =========================================================================
- Date: Mon, 29 Aug 1994 16:23:49 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
- Subject: Re: Polls close on Wednesday
-
- >Currently,
- >
- >76 think a newsgroup should be created
- >39 don't think a newsgroup should be created
- >4 don't care
- >
- >82 think the mailing list should be continued with a gateway between it and
- >the
- > newsgroup
- >28 don't think the mailing list should continue
- >7 don't care
-
- Well, it looks like we're going to get a newsgroup (too bad ;-)
-
- Could we make sure that is gets archived somewhere so that we can refer to
- postings that expired from the news servers?
-
- Thanks, Klaus
-
- ------------------------------------------------------------------------
- Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
- =========================================================================
- Date: Mon, 29 Aug 1994 15:33:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Polls close on Wednesday
- In-Reply-To: Your message of "Mon, 29 Aug 94 16:23:49 EDT"
-
- Klaus comments.....
- [poll count snipped]
-
- >Well, it looks like we're going to get a newsgroup (too bad ;-)
- >
- >Could we make sure that is gets archived somewhere so that we can refer to
- >postings that expired from the news servers?
-
- Yes, that's one of the goals. I'll do everything I can to provide options that
- everyone can live with.....will almost everyone.
-
- pf
- =========================================================================
- Date: Mon, 29 Aug 1994 16:42:20 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
- Subject: Re: Polls close on Wednesday
-
- >Yes, that's one of the goals. I'll do everything I can to provide options that
- >everyone can live with.....will almost everyone.
-
- Yes, I know you are doing it already! Thanks!
-
- Klaus
-
- ------------------------------------------------------------------------
- Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
- =========================================================================
- Date: Mon, 29 Aug 1994 18:02:39 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA>
- Subject: FileMaker whose clause
-
- Anyone scripting filemaker will be interested to know that 2.1v3
- (updater at your favorite info-mac mirror)appears to have a vastly improved
- implimentation of the "whose" clause. I assume it now uses filemakers
- index. At least My informal test shows that it works at least as fast as my
- workaround.
- =========================================================================
- Date: Mon, 29 Aug 1994 19:09:37 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Polls close on Wednesday
- In-Reply-To: <no.id> from "Klaus P. Fechner" at Aug 29, 94 04:23:49 pm
-
- --Klaus P. Fechner wrote:
- >
- >Well, it looks like we're going to get a newsgroup (too bad ;-)
-
- Don't be too sure. This subject hasn't even been broached on
- comp.sys.mac.databases, yet. We have no idea what the net even thinks
- about this. When and if a comp.sys.mac.databases.filemaker does make it
- to a vote a favorable poll on this list doesn't mean it will pass a
- UseNet CFV.
-
- -Hades (news.groups regular from way back, and the RFD/CFV organizer for
- comp.sys.mac.databases)
- =========================================================================
- Date: Mon, 29 Aug 1994 16:32:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Apple Script Books
- In-Reply-To: <199408291750.KAA29854@netcom16.netcom.com>
-
- On Mon, 29 Aug 1994, Todd Main wrote:
-
- > Does Tao... come with the Scriptable Finder or just explain it?
- > (stupid-user question...)
-
- Apple wouldn't allow us to distribute the scriptable Finder (urgh). So we
- have a chapter which introduces how to use it, work with files, some
- simple examples, etc.
-
- Derrick
- =========================================================================
- Date: Mon, 29 Aug 1994 16:37:42 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lawrence Wood <lawrencw@MICROSOFT.COM>
- Subject: Re: Polls close on Wednesday
-
- Indeed I would like a newsgroup created and a gateway between the
- mailing list and the newsgroup. If a newsgroup is created then this
- will help spread the AppleScript word (so to speak). Given that
- everyone with system 7.5 will have applscript it would be good to
- provide a place to go for people to get answers. chow.
-
- lw
-
- ----------
- From: Fred Terry <pfterry@LKS.CSI.COM>
- To: Multiple recipients of list MACSCRPT
- <netmail!MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu>
- Subject: Polls close on Wednesday
- Date: Aug 29, 94 8:43AM
-
- Just wanted to remind everyone that Wednesday is the cutoff point for turning
- in the newsgroup creation polls.
-
- Currently,
-
- 76 think a newsgroup should be created
- 39 don't think a newsgroup should be created
- 4 don't care
-
- 82 think the mailing list should be continued with a gateway between it and
- the
- newsgroup
- 28 don't think the mailing list should continue
- 7 don't care
-
-
- Cheers,
-
- pf
- =========================================================================
- Date: Mon, 29 Aug 1994 19:21:49 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Numbers Only
-
- How do I check that an input only contains numbers? I don't want people to
- enter letters.
-
- Thanks,
-
- -MJL
- =========================================================================
- Date: Mon, 29 Aug 1994 20:05:39 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: FileMaker whose clause
-
- > Anyone scripting filemaker will be interested to know that 2.1v3
- >(updater at your favorite info-mac mirror)appears to have a vastly improved
- >implimentation of the "whose" clause. I assume it now uses filemakers
- >index. At least My informal test shows that it works at least as fast as my
- >workaround.
-
- It looks like you're right -- though finding from a script still doesn't
- seem to be _quite_ as fast as finding in FileMaker, it is a vast
- improvement, and will make scripting FileMaker Pro a lot easier. Now, back
- to work rewriting all those scripts...
- =========================================================================
- Date: Mon, 29 Aug 1994 21:34:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Re: How to quit one script and launch another?
-
- >I want script application A to launch script application B and then
- >completely quit. Using combinations of launch and run, the best I can do
- >is call B as a subroutine. I want to do this so that script A can call
- >script B to update A from a file server and then re-launch A. In the DOS
- >batch file world you would use CALL.
-
- I'm not sure what the right answer is but I decided that rather than trying
- to chain scripts for the task of mutually updating, a better approach is to
- use script libraries. Just put the major code into libraries, which can be
- easily checked and updated without having to worry about whether the
- library is open.
-
- Thanks for the help!
-
- -Erik
- =========================================================================
- Date: Mon, 29 Aug 1994 18:42:30 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Eudora 1.5
-
- Hi,
- Has anyone out there played with Eudora 1.5-(whateveritis) yet? I've been
- messing with it and I really don't see much difference between it and
- 1.4.3. A lot of the commands still don't work yet.
-
- I was hoping that 1.5's command library would be a lot more "fleshed out"
- than 1.4.3's. I guess I shouldn't have got my hopes up.
-
- -peter
- =========================================================================
- Date: Mon, 29 Aug 1994 21:38:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Path of running script file?
-
- How do I get the path (or file reference) of the currently executing script
- file ? I'm hoping the answer will work for script files as well as script
- applications. Seems like you should be able to get it by using some
- expression involving "me".
-
- -Erik
- =========================================================================
- Date: Tue, 30 Aug 1994 06:49:12 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Marco Strehler <strehler@FVMED.UNIZH.CH>
- Subject: Re: A different file existence question
-
- >John W. Baxter wrote:
- >:tell application "Finder"
- >: exists disk "Vashon"
- >:end tell
- >
- >:quickly returns true on my system (which has a disk named "Vashon"). Likewise,
- >: exists disk "missing" (I don't have one of those) returns false.
- >
- > Now try inserting a floppy disk. Open its directory, and then eject the
- >disk. exists disk "Missing Floppy" returns - "Please insert Missing Floppy in
- >any drive". Great for checking in a fully automated script that's supposed to
- >run overnight ;-)
- >
-
- Try this:
-
- tell application "Finder"
- if (exists disk "MyFloppy") then
- if (ejectable of disk "MyFloppy") then
- display dialog "Floppy exists and is online"
- else
- display dialog "Floppy exists, but it is offline"
- end if
- else
- display dialog "No Floppy with this name!"
- end if
- end tell
-
- -- Marco
-
-
- ----------------------------------------------------------------
- Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
- VOICE: ++41 (0)1 810 27 03 INTERNET: strehler@fvmed.unizh.ch
- ----------------------------------------------------------------
- =========================================================================
- Date: Mon, 29 Aug 1994 21:59:21 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Path of running script file?
-
- > How do I get the path (or file reference) of the currently
- > executing script file ? I'm hoping the answer will work for script
- > files as well as script applications. Seems like you should be able
- > to get it by using some expression involving "me".
-
- Yes, it really is that simple.
-
- path to me
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 510-540-5535 ext. 280 Fax: 510-540-5630
- I speak for the Pope, the President of the United States,
- and all sentient beings everywhere, other than those at
- Berkeley Systems Incorporated.
- =========================================================================
- Date: Mon, 29 Aug 1994 21:54:12 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brad Schrick <brad@BATNET.COM>
- Subject: Re: Eudora 1.5
-
- >Hi,
- > Has anyone out there played with Eudora 1.5-(whateveritis) yet? I've been
- >messing with it and I really don't see much difference between it and
- >1.4.3. A lot of the commands still don't work yet.
-
- Yeah. It works well by hand, and it breaks my 1.4.3 scripts. More
- noodling around, I suppose, unless I'm just doing something stupid. -- Brad
-
- ___________________________________________________________________________
- Brad Schrick or try
- Engineering Software Concepts, Inc. Embry-Riddle Aeronautical University
- 236 Hamilton Avenue / PO Box 66 600 S Clyde Morris Blvd
- Palo Alto, California 94301 Daytona Beach, FL 32114
- (415) 325 4321 (messages) (904) 226 6200
- brad@ape.com schrickb@db.erau.edu
- esc@isl.stanford.edu http://macwww.db.erau.edu/
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Mon, 29 Aug 1994 18:57:11 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Re: Path of running script file?
- In-Reply-To: <9408300445.AA11003@uhunix.uhcc.Hawaii.Edu>
-
- On Mon, 29 Aug 1994, Erik Smith wrote:
-
- > How do I get the path (or file reference) of the currently executing script
- > file ? I'm hoping the answer will work for script files as well as script
- > applications. Seems like you should be able to get it by using some
- > expression involving "me".
-
- Unfortunately things work differently with script files than with
- applications. For AppleScript applications just use:
-
- path to current application
- OR
- path to frontmost application
- OR
- path to me
-
- These seem to be equivalent.
-
- The bad news is that for normal scripts, I don't think it's possible to get
- the name. Can anyone prove me wrong? Please do if you can, because I
- want to know too.
-
- -peter
- =========================================================================
- Date: Tue, 30 Aug 1994 17:09:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: A different file existence question
-
- Marco Strehler <strehler@FVMED.UNIZH.CH> writes:
-
- >tell application "Finder"
- > if (exists disk "MyFloppy") then
- > if (ejectable of disk "MyFloppy") then
- > display dialog "Floppy exists and is online"
- > else
- > display dialog "Floppy exists, but it is offline"
- > end if
- > else
- > display dialog "No Floppy with this name!"
- > end if
- >end tell
-
- I don't like this. I know it works, because I've discovered myself that the
- "ejectable" property of an ejectable volume is false if the volume is
- actually ejected. But I do wish there were a separate "online" or "offline"
- or "ejected" property or something, that you could test. I see the "ejectable"
- behaviour as a bug/misfeature that should be fixed.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 29 Aug 1994 23:19:06 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Numbers Only
-
- >How do I check that an input only contains numbers? I don't want people to
- >enter letters.
-
- Here's a skeleton for one way (there are others). This uses only the basic
- display dialog Scripting Addition, nothing fancy. I don't know how good a
- job it does of rejecting EVERY non-digit...it catches the ones I've tried.
-
- set smartUser to false
- repeat until smartUser
- display dialog "Enter a number:" default answer ""
- set nString to text returned of result
- try
- set n to nString as number
- set smartUser to true
- on error
- display dialog "I said NUMBER!"
- end try
- end repeat
- n
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Tue, 30 Aug 1994 00:14:49 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Scott Trotter <strotter@NETCOM.COM>
- Subject: Re: Scripting PageMaker
-
- Jeff Boulter writes:
-
- >Could some kind soul with the Script Guide look up how do do the following:
- >
- >Select All of the text in the story selected with the arrow tool
- >copy the text the clipboard
-
- textedit -- positions insertion pt when text block is selected w/ pointer
- selectall -- selects all text in story if insertion point is in text
- copy -- copies selected text to clipboard
-
- >get the name of the frontmost document
-
- getpubname -- get name of the active publication, including full path
-
- Disclaimer: I haven't tried this, just looked it up. Good luck!
-
- --
- ======================================================================
- Scott Trotter Desktop Strategies Beaverton, Oregon, USA
- email: strotter@netcom.com fax: 503.641.2983 voice: 503.641.2831
- =========================================================================
- Date: Tue, 30 Aug 1994 09:45:32 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
- Subject: Eudora Announcer 1.0 notes
-
- Someone wrote to me:
-
- >Thanks for this submission! Before I subject my Mac to yet another
- >background app, and also for educational purposes, I'd like to take a look
-
- It's not a background app, by the way...
-
- >at the scipt(s) within that app.
- >
- >When I try to open it in ScriptWizard (or Script Editor) it asks me "Where
- >is Mail" with a file dialog, and I don't know what it wants. Any hint?
-
- I would like to advice all of you out there that it might be necessary for
- you when opening the script with a script editor to locate your copy of the
- Eudora app. The script editor will however ask to locate your copy of
- "Mail". This is since I tend to give my software somewhat more meaningful
- names then Eudora or Nuntius....
-
- There should however be none of these problems running the script, though
- I'm not positive about that, of course, since I'm new at Applescript too.
- If you do experience communication problems, please try out the above
- trick.
-
- Enjoy,
-
- Roel
-
-
- +----------------------------------------------------------+
- | Department of Ergonomics |
- | University of Twente |
- | P.O. Box 217, 7500 AE Enschede |
- | The Netherlands |
- | phone: +31 53 89 33 24 |
- | fax: +31 53 35 66 95 |
- +----------------------------------------------------------+
- =========================================================================
- Date: Tue, 30 Aug 1994 14:34:58 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Robert Holton <rholton@CSD.ABDN.AC.UK>
- Subject: ScriptServer
-
- Hi,
-
- I'm looking at ScriptServer to see if I can hack up a mode in Alpha for
- AppleScrpt, but I've fallen at the first hurdle! I can't even write an
- AppleScript program to compile or decompile a script. Any hints/example
- code would be gratefully received; if and when I get an Alpha AppleScript
- mode up and running I'll make it readily available (unless you know of
- anyone else who has done this...) (hell, if it works I'll even pay my
- shareware feel for ScriptServer :-).
-
- Cheers,
-
- Rob
- =========================================================================
- Date: Tue, 30 Aug 1994 16:38:09 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
- Subject: Re: A different file existence question
- In-Reply-To: <m0qfLBt-0000GzC@rz03.FH-Karlsruhe.DE> from "Marco Strehler" at
- Aug 30, 94 06:49:12 am
-
- Marco Strehler wrote:
-
- :Try this:
-
- :tell application "Finder"
- : if (exists disk "MyFloppy") then
- : if (ejectable of disk "MyFloppy") then
- [...]
-
- Thanks a lot, this is exactly what I have been looking for.
- The only thing that confuses me is the description of the "ejectable"
- attribute in the Language Guide. I read that first and then assumed it
- would declare whether a disk can be physically ejected, so I never
- tried to use it to solve my problem... Oh well, one can't expect that
- RTFM solves all problems ;-)
-
- :-- Marco
-
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- ---
- This product has been cruelly tested on cute little furry animals.
- =========================================================================
- Date: Tue, 30 Aug 1994 11:14:02 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Exit from a handler
-
- >I would like to test some condition and if true exit the handler:
- >
- >on frob()
- > ...
- > if abort() then
- > exit frob
- > end if
- > ...
- >end frob
-
- Instead of "exit frob" use the following statement:
- error number -128
-
- Kinda ugly, but this is the same as someone clicking a Cancel button in a
- dialog, which also stops execution.
-
- Danny Goodman
- =========================================================================
- Date: Tue, 30 Aug 1994 11:23:52 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Changing value in string
-
- >set AppleScript's text item delimiters to ","
- >set vInfo to "4,0,27,\" \",3,56,\" \",3,100,\" \",3,146,\" \""
- >set first item of vInfo to 6
-
- There are a few problems with this script fragment. First of all, the only
- time you can set items are when they are in AppleScript lists {}. If you can
- make your vInfo into an AppleScript list (I'm not sure where you're getting
- the data--but if you're hardwiring it, you can say: set vInfo to {4,0,27,"
- ",3,56," ",3, 100," ",3,146," "} ). In this case, you don't have to adjust
- the text item delimiters property of AppleScript to get or set individual
- items of the list.
-
- Danny Goodman
- =========================================================================
- Date: Tue, 30 Aug 1994 12:52:48 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: =?iso-8859-1?Q?Andr=E9?= Hermelink <andreh@KNOWARE.NL>
- Subject: Re: Apple Script Books
-
- Hi Robert,
- You don't probably don't know who I am....
- I visited (together with Peter Wagemans from Claris Belgium) the Claris CTU
- this year. We went together to the BMUG meeting in Berkely.
- A few weeks after my visit to the States I received my internet account, so
- here I am, also a member of the 'mac scripting systems'.
- I already bought the two books you mentioned, only I wonder, the second
- edition of the TAO book, is that one the same as the first edition?
- Like to hear from you, bye, Andre. (Ingram Micro Holland)
-
- Andre Hermelink andreh@knoware.nl
- Rijnstraat 4-23 Ingram Micro Holland:
- 1972 VG IJmuiden AppleLink: HSUP.INGRAM or
- HOL0278@applelink.apple.com
- xx-31-2550-37027
- =========================================================================
- Date: Tue, 30 Aug 1994 10:28:44 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brendan McCarthy <brendan_mccarthy@QM.CLARIS.COM>
- Subject: Re: FWD>>FileMaker whose cla
-
- Mail*Link(r) SMTP RE>FWD>>FileMaker whose clause
- "Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA> writes:
-
- > Anyone scripting filemaker will be interested to know that 2.1v3
- >(updater at your favorite info-mac mirror)appears to have a vastly improved
- >implimentation of the "whose" clause. I assume it now uses filemakers
- >index. At least My informal test shows that it works at least as fast as my
- >workaround.
-
- You know what they say about assumptions...
- Actually, FileMaker's index has _always_ been used when resolving "whoses."
- Why else would an application support "whose" in addition to a simple test?
-
- The performance increases in 2.1v3 occur because I added query optimization
- when translating the AppleScript query to FileMaker's (more limited) query
- grammar. Previously each sub-expression in a whose required a separate
- FileMaker "find" operation. I also fixed a number of bugs and patched a
- sneaky little memory leak (28 bytes.) I felt these fixes were valuable
- enough to push for their inclusion in v3, the Server compatible version.
-
- Brendan McCarthy
- brendan@claris.com
- =========================================================================
- Date: Tue, 30 Aug 1994 13:40:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM>
- Subject: Re: Exit from a handler
-
- 8/30/94 13:30
-
- Hi,
-
- >I would like to test some condition and if true exit the handler:
- >
- [snip]
-
- You could do something like this (to borrow your example):
-
- on frob()
- ...
- if abort() then
- return -- alternately, return myVariableOrValue
- end if
- ...
- end frob
-
-
- Hopefully helpful,
- Andrew
-
- ------------------
- Andrew T. Johnston
- Apple Canada, Inc.
- atjohnst@apple.com
- =========================================================================
- Date: Tue, 30 Aug 1994 11:47:24 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Robert Bogar <robert_bogar@QM.CLARIS.COM>
- Subject: Scripting MacWrite Pro?
-
- Reply to: Scripting MacWrite Pro?
- Just a general question...Who out there in scripting land is using the
- AppleScript features of MacWrite Pro 1.5? What are you doing with it? What
- type of solutions are you developing? If you'ld like to, feel free to
- e-mail me directly to avoid cloging up the mail list...
- rdb@qm.claris.com
-
- thanks-RDB
- =========================================================================
- Date: Tue, 30 Aug 1994 12:06:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: QuickTake software scriptable?
-
- W. J. Proffer <proffer@SCUBED.SCUBED.COM>:
- >
- >Buy the PhotoFlash application --- $200. Or you can get the developer's kit.
- >
- >That's the only way you can do it -- straight from Jon Pugh.
-
- I recommend waiting a few weeks. There's an announcement coming soon.
-
- Jon
- =========================================================================
- Date: Tue, 30 Aug 1994 12:29:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Re: Path of running script file?
-
- This command executes with either a script or an application:
-
- display dialog (path to current application as string)
-
- The problem is that a script returns a path to the Script Editor
- application as expected. "Path to me" does not work however, unless it
- needs some kind of tell statement.
-
- -Erik
- =========================================================================
- Date: Tue, 30 Aug 1994 14:59:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: MACSCRPT Digest - 29 Aug 1994
-
- Hello everyone!
-
- If you are going to post to the group by replying to the digest,
- PLEASE PLEASE edit your outgoing quotations!! You can easily double
- the length of the entire digest the next day if you inadvertently
- quote the whole digest from the previous day in your outgoing mail.
- This is not cool. And wastes bandwidth. And our time. And destroys
- ozone rainforests filled with pandas etc...
-
- Anyway, please edit your mailings to the group judiciously. Thanks!
-
- Jason
-
- --
- Are you trying to say waffles are | Jason Frankovitz
- diuretics, or that consuming diuretics | Bloomington, IN
- makes you waffle? | jfrankov@indiana.edu
- =========================================================================
- Date: Wed, 31 Aug 1994 08:57:43 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Latta <CHRIS@TEKOTAGO.AC.NZ>
- Subject: Talking to other computers
-
- Hi I'm fairly new to applescript so sorry if this is really obvious but how do I
- send commands to other applications running over an appletalk network. If so
- can I use the PPC Browser and/or hard wire the location of the other application
-
- Chris Latta
- May all your bugs be handled with fly spray
- =========================================================================
- Date: Tue, 30 Aug 1994 15:47:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Apple Script Books
- In-Reply-To: <199408302114.OAA07370@netcom2.netcom.com>
-
- On Tue, 30 Aug 1994, =?iso-8859-1?Q?Andr=E9?= Hermelink wrote:
-
- > is that one the same as the first edition?
-
- Nope. There are numerous improvements in the second edition. The second
- edition covers AppleScript 1.1, the Scriptable Finder (though it doesn't
- come with it), the Read/Write Commands, comes with lots of software
- (including AS 1.1) and sample scripts.
-
- I don't know about availability abroad (assonance to die for!), but I've
- seen it start to show up in US bookstores already.
-
- Derrick
- =========================================================================
- Date: Tue, 30 Aug 1994 16:52:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: How to get zone?
-
- Anyone know how to get the zone name of the current computer as a string?
- I need an expression like "zone of current application" (doesn't work).
-
- -Erik
- =========================================================================
- Date: Wed, 31 Aug 1994 12:45:14 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: Talking to other computers
-
- >Hi Chris !
-
- tell application "excel" of machine "macName" of zone "truc"
- intructions as usual
- end tell
-
- you have to have right to connect, give your name and password (do not have
- to program it)
- and the appication on the other side has to be open already (also it opens
- documents after)
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Wed, 31 Aug 1994 09:53:01 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Luis Muench <muench@SOLIX.FIU.EDU>
- Subject: CCL script for SLIP
-
- I am trying to get up and running with The Internet Adapter (TIA)
- and have successfully configured it on my UNIX account. The problem is
- with the login script for intercon's Mac SLIP. It uses ARA CCL
- (Connection Control Language) and although there are rudimentary
- directions for use in the docs, I have specific problems with my setup.
-
- Setup is a terminal server connection (aka "hardwire", basically
- connected directly to a terminal server over a serial line) for which I
- hit a return to "wake up" the terminal server, type in the name for the
- service I wish to use (SOLIX, the unix box where I have my account) give
- username and password, and presto. Short script, but I have no idea how
- to give the command to wake up the line.
-
- Anyone have exp writing a CCL script?
-
- Please email me directly with any replies.
-
- Thanx a megabyte!
- -Luis
-
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: ::: "My Karma Ran Over My Dogma"
- :: :: :: muench@fiu.edu
- : ;::::: Luis Muench - graphic artist
- : : FloridaInternationalUniversity
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- =========================================================================
- Date: Wed, 31 Aug 1994 09:53:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Script examples for BBEdit 3.0?
-
- Attention: newbie alert! :-)
-
- I have just begun a project in which I will parse several 1-2 mbyte
- files (output of a VAX/VMS database search) into tab-delimited text for
- inclusion in a Filemaker Pro-type database. It seemed to me that
- Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
- this.
-
- However, BBEdit is not completely, but almost entirely unlike Scriptable
- Text Editor in every way. None of the syntax I carefully gleaned from Danny
- Goodman's book seems to have any effect. Can anyone offer me an example
- script which could get me started? *Anything* would do, although something
- with a lot of text manipulation would be ideal. Assume: Applescript 1.1 as
- it comes with the Random House update to Goodman's book, and BBEdit 3.0.
-
- Thanks,
- Clint
- =========================================================================
- Date: Wed, 31 Aug 1994 22:12:31 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Craig Richmond <craig@ECEL.UWA.EDU.AU>
- Subject: Re: Script examples for BBEdit 3.0?
-
- > I have just begun a project in which I will parse several 1-2 mbyte
- >files (output of a VAX/VMS database search) into tab-delimited text for
- >inclusion in a Filemaker Pro-type database. It seemed to me that
- >Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
- >this.
-
- Seriously. Have a look at MacPerl or the unix one if you can get hold of
- it. It really is the correct tool for the job for this sort of thing.
-
- Craig
-
- --
- Craig Richmond, Computer Officer, ECEL Computing Services +61 9 380 1405
- The University of Western Australia or 380 3860 Email for FAX Number
- craig@ecel.uwa.edu.au Dvorak Keyboards RULE! "Messes are only acceptable
- if users make them. Applications aren't allowed this freedom" I.M.VI 2-4
- =========================================================================
- Date: Wed, 31 Aug 1994 09:53:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA>
- Subject: Re: FWD>>FileMaker whose cla
-
- >
- >From:spearman@access.mbnet.mb.ca (Dean J. Spearman)
- >
- >>Mail*Link(r) SMTP RE>FWD>>FileMaker whose clause
- >>"Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA> writes:
- >>
- >>> Anyone scripting filemaker will be interested to know that 2.1v3
- >>>(updater at your favorite info-mac mirror)appears to have a vastly improved
- >>>implimentation of the "whose" clause. I assume it now uses filemakers
- >>>index. At least My informal test shows that it works at least as fast as my
- >>>workaround.
- >>
- >>You know what they say about assumptions...
- >>Actually, FileMaker's index has _always_ been used when resolving "whoses."
- >>Why else would an application support "whose" in addition to a simple test?
- >
- >Actually I didn't know that. I was basing my assumption on prior postings to
- >the macscript mailing list where others also made that assumption. (and no one
- >was kind enough to clarify matters.)
- >
- >>
- >>The performance increases in 2.1v3 occur because I added query optimization
- >>when translating the AppleScript query to FileMaker's (more limited) query
- >>grammar. Previously each sub-expression in a whose required a separate
- >>FileMaker "find" operation. I also fixed a number of bugs and patched a
- >>sneaky little memory leak (28 bytes.) I felt these fixes were valuable
- >>enough to push for their inclusion in v3, the Server compatible version.
- >>
- >>Brendan McCarthy
- >>brendan@claris.com
- >>
- >Your actions are much appreciated. the content of the prior postings I
- >referred to were primarily work arounds as the speed in previous versions made
- >the "whose" clause all but unusable except in the smallest databases. Now if
- >I could just figure out how to (from applescript) open a database as a guest
- >without having finder level access ....
- >
- >
- =========================================================================
- Date: Wed, 31 Aug 1994 08:28:31 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Winkler <jeffwink@SDSC.EDU>
- Subject: Re: MACSCRPT Digest - 29 Aug 1994
-
- >Brian Hall <mspace@NETCOM.COM> wrote:
- >>
- >>Given that a few people suggested writing a OSAX to handle the Eudora "on
- >>notify" problem, could someone try it out and post the result? This sounds
- >>like the best interim solution.
- >
- >Done. I just cobbled together an aete and threw it into an osax. It's not
- >even stuffed, it's so small. It generates the right code, but I haven't
- >tried it. I don't have a nice TCP link, only a dialup account, so it
- >doesn't work well here. Just put some code into an "on notify" handler and
- >see if it works.
- >
- >Good luck, experimenters. Oh, I've also included the MPW Rez code I used
- >to create the aete below.
- >
- >Jon
-
- Michael,
-
- Maybe it still doesn't work?!
-
- -Jeff
-
- _______________________________________________________________________
- Jeff Winkler
- Macintosh Consultant
- San Diego Supercomputer Center
- (619) 534 8334
- jeffwink@sdsc.edu
- pager@pagenet.ucsd.edu "Subject: jeffwink"
- _______________________________________________________________________
- =========================================================================
- Date: Wed, 31 Aug 1994 11:50:35 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: FaceSpan Info and Question
-
- I contacted APDA through e-mail correspondence about just getting a copy of the
- FaceSpan software and whether it would be included with System 7.5 (CD version).
- This is the reply from Ken:
-
- >>To only order FaceSpan, please call Software Designs Unlimited. (I'm sorry I
- >>don't have their number). FaceSpan doesn't come with 7.5.
-
- So, does anyone out there have the number of Software Designs Unlimited or any
- further info on getting just a copy of the FaceSpan software?
-
- Thanks....
-
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- =========================================================================
- Date: Wed, 31 Aug 1994 11:50:31 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Scripting Anarchie
-
- I'm exploring the potential of AppleScripting with Anarchie but I can't seem to
- figure out how to determine if an item returned from a listing is a file or a
- folder. Below is what I have so far. I am able to selected any paragraph
- returned since it is actually a URL to that item but how do I determine what the
- item is:
-
- tell application "Anarchie"
- activate
- with timeout of (5 * minutes) seconds
- list file "Macintosh HD:Desktop Folder:Listing" host "ftp.sunet.se" path
- "/pub/pictures" with window --get the directory of pictures.
- end timeout
-
- selectall --select all the contents of the window.
- set theList to contents of selection --store the URL path in paragraph form
- for selection.
- --pick random path specifying an item (could have used index of paragraph).
- set thePick to (random number from 1 to (count of paragraphs of theList))
- set theChosenItem to paragraph thePick of theList
-
- --statements to determine if the item is a folder or a file.
-
- end tell
-
-
- Any help would be greatly appreciated...
-
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com eWorld: kimsontran@eworld.com
- =========================================================================
- Date: Wed, 31 Aug 1994 09:36:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "ross (w.r.) brown" <ross@BNR.CA>
- Subject: Re: How to get zone?
-
- >Anyone know how to get the zone name of the current computer as a string?
- >I need an expression like "zone of current application" (doesn't work).
-
- Install the Sharing Information osax from GTQ Scripting Library, then try
- zone of (sharing information)
- =========================================================================
- Date: Wed, 31 Aug 1994 12:21:57 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Smeenge <Smeenge@AOL.COM>
- Subject: Re: MACSCRPT Digest - 29 Aug 1994 to 30 Aug 1994
-
- CANCEL SUBSCRIPTION
- REMOVE NAME
- CANCEL LISTSERV
- DELETE MEMBERSHIP
- =========================================================================
- Date: Wed, 31 Aug 1994 09:17:46 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Script examples for BBEdit 3.0?
-
- > I have just begun a project in which I will parse several 1-2 mbyte
- >files (output of a VAX/VMS database search) into tab-delimited text for
- >inclusion in a Filemaker Pro-type database. It seemed to me that
- >Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
- >this.
-
- Perhaps using awk or perl might be more appropriate. The latter is on gaea.
- The former is availible. Both are better than AppleScript + app for
- manipulating large text files (IMO).
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Wed, 31 Aug 1994 09:28:46 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FaceSpan Info and Question
-
- >I contacted APDA through e-mail correspondence about just getting a copy of the
- >FaceSpan software and whether it would be included with System 7.5 (CD
- >version).
- >This is the reply from Ken:
- >
- >>>To only order FaceSpan, please call Software Designs Unlimited. (I'm sorry I
- >>>don't have their number). FaceSpan doesn't come with 7.5.
- >
- >So, does anyone out there have the number of Software Designs Unlimited or any
- >further info on getting just a copy of the FaceSpan software?
-
- Per the About box (copied by hand...grrr!):
-
- Software Designs Unlimited
- 1829 E Franklin St
- Chapel Hill, NC 27514
-
- (919) 968-4567
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Wed, 31 Aug 1994 17:33:52 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software Inc
- Subject: Re: FaceSpan Info and Question
-
- In Regards to your letter <199408311610.AA00159@exnet.com>:
- >
- > I contacted APDA through e-mail correspondence about just getting a copy of
- the
- > FaceSpan software and whether it would be included with System 7.5 (CD
- version).
- > This is the reply from Ken:
- >
- > >>To only order FaceSpan, please call Software Designs Unlimited. (I'm sorry
- I
- > >>don't have their number). FaceSpan doesn't come with 7.5.
- >
- > So, does anyone out there have the number of Software Designs Unlimited or any
- > further info on getting just a copy of the FaceSpan software?
- >
-
- Facespan isn't available on its own. You want the AppleScript
- Scripters' Kit, or alternatively the AppleScript 1.1 SDK. Both include
- Facespan, plus a lot more; think of the cost of the kit as being for
- Facespan, and that AS 1.1 is thrown in for free, the price really
- isn't too high. You can get the first from Apple mail order channels,
- and the second is an APDA product, code number R0175Z/C (page 11 of the
- current catalog). The first is cheaper if you go to a discount mail
- order supplier; the APDA SDK is a bit steep at $199.
-
- SDU can be contacted at SDU@applelink.apple.com, by the way. Address
- your message to Chris Ogden at SDU.
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Wed, 31 Aug 1994 09:43:09 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gabriel Lawrence <gabe@UCSD.EDU>
- Subject: Dialog Box with non Clear text.
-
- I am writing an applescript to start up an application that needs an
- appleshare volume mounted. I wanted to be able to ask the user for their
- user name and their password, but I want that password to show up not in
- clear text. anyone know of any osaxen that do this? I have looked at the
- password osaxen but it encrypts the password...
-
- thanx
-
- -Gabe
-
- -----------------------------------------------------------------------
- Scripps Institution of Oceanography
- UC San Diego
- Wrk: 619.534.2040 Hme: 619.455.6506
- http://sio.ucsd.edu/~gabe/
- =========================================================================
- Date: Wed, 31 Aug 1994 14:05:32 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: ScriptServer
-
- Robert Holton <rholton@CSD.ABDN.AC.UK> wrote:
- >
- >I'm looking at ScriptServer to see if I can hack up a mode in Alpha for
- >AppleScrpt, but I've fallen at the first hurdle! I can't even write an
- >AppleScript program to compile or decompile a script. Any hints/example
- >code would be gratefully received; if and when I get an Alpha AppleScript
- >mode up and running I'll make it readily available (unless you know of
- >anyone else who has done this...) (hell, if it works I'll even pay my
- >shareware feel for ScriptServer :-).
-
- Start saving your quid, bits, pounds or whatever. :)
-
- Here's a sample script which will compile a text file with ScriptServer:
-
- tell application "ScriptServer"
- set f to choose file "Pick a file to compile" of type "TEXT"
- set fName to f as string
- set sName to fName & ".as"
- with timeout of 3600 seconds -- 1 hour, plenty of time to find & launch apps
- compile f to sName
- end timeout
- end tell
-
- You'll need to spruce it up. It should be straightforward to write a
- #include script like we did in MPW.
-
- Right now you need to communicate with ScriptServer via files. I'll be
- adding support for sending the text on the compile event, as well as for
- creating a script object which can be specified once and then referenced.
- Some of this is in the aete, which has some mild lies. They will be
- truthful later. ;)
-
- Jon
- =========================================================================
- Date: Wed, 31 Aug 1994 17:31:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Is Fetch scriptable?
-
- Is Fetch scriptable at all? At work there is an old machine that
- doesn't understand some of the FTP commands Anarchie sends to it.
- As a result, it denies Anarchie access. Fetch, however, has no
- problem getting access.
-
- Also, does Anarchie allow you to get a directory listing under
- script control, without forcing you to dump the directory list
- to a file? I'd like to send Anarchie an appleEvent that causes
- it to present to me the directory listing, so that I can manually
- double-click on the files I want.
-
- Thanks.
-
- -David
-
- ____________________________________________________
-
- David C. Myers
- myers@acec.com
- =========================================================================
- Date: Thu, 1 Sep 1994 09:32:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Scripting Anarchie
-
- Kim-son Tran <ktran@CC.ATINC.COM> writes:
-
- >I'm exploring the potential of AppleScripting with Anarchie but I can't seem to
- >figure out how to determine if an item returned from a listing is a file or a
- >folder.
-
- Hint: how do you think Anarchie knows? All it's getting back from the FTP
- server is a text listing. Folders are the ones with the slashes on the ends
- of their names.
-
- >tell application "Anarchie"
- > activate
- > with timeout of (5 * minutes) seconds
- > list file "Macintosh HD:Desktop Folder:Listing" host "ftp.sunet.se" pat
- h
- > "/pub/pictures" with window --get the directory of pictures.
- > end timeout
- >
- > selectall --select all the contents of the window.
- > set theList to contents of selection --store the URL path in paragraph form
- > for selection.
-
- > --pick random path specifying an item (could have used index of paragraph).
- > set thePick to (random number from 1 to (count of paragraphs of theList))
- > set theChosenItem to paragraph thePick of theList
-
- These two lines can be replaced with one:
-
- set theChosenItem to some paragraph of theList
-
- > --statements to determine if the item is a folder or a file.
-
- How about:
-
- if last character of theChosenItem = "/" then
- -- it's a folder
- else
- -- it's a file
- end if
-
- >end tell
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 31 Aug 1994 17:59:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Is Fetch scriptable (additional comments)
-
- With regard to my second question, about Anarchie's ability to get
- a directory listing without saving it to a file, let me add that
- I'm using Frontier, which doesn't appear to allow the
- "with window" parameter that AppleScript uses. Why is that?
-
- Thanks.
-
- -David.
-
- ____________________________________________________
-
- David C. Myers
- myers@acec.com
- =========================================================================
- Date: Wed, 31 Aug 1994 14:14:27 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: AppleScript control statements
-
- Maybe someone out there can help me out with this question:
-
- Does AppleScript have a command that is the equivalent of the "continue"
- statement in C? It seems like a major thing to leave out.
-
- repeat with i from 1 to 10
- blah blah blah
- if false then
- skip to the top of the loop --This is what I want to do!
- blah blah blah blah
- end repeat
-
-
- Do I have to do it recurvesively?
-
- Thanks in advance,
- peter
- =========================================================================
- Date: Wed, 31 Aug 1994 17:35:02 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Re: AppleScript control statements
-
- >Does AppleScript have a command that is the equivalent of the "continue"
- >statement in C? It seems like a major thing to leave out.
- >
- >repeat with i from 1 to 10
- > blah blah blah
- > if false then
- > skip to the top of the loop --This is what I want to do!
- > blah blah blah blah
- >end repeat
-
- Isn't this the same as:
-
- repeat with i from 1 to 10
- blah blah blah
- if not false then
- blah blah blah blah
- end repeat
- =========================================================================
- Date: Wed, 31 Aug 1994 17:44:45 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Eric Gorr <ericg@CS.UOREGON.EDU>
- Subject: Re: AppleScript control statements
- In-Reply-To: <9409010038.AA06094@skinner.cs.uoregon.edu>
-
- On Wed, 31 Aug 1994, Erik Smith wrote:
-
- > >Does AppleScript have a command that is the equivalent of the "continue"
- > >statement in C? It seems like a major thing to leave out.
- > >
- > >repeat with i from 1 to 10
- > > blah blah blah
- > > if false then
- > > skip to the top of the loop --This is what I want to do!
- > > blah blah blah blah
- > >end repeat
-
-
- what about doing:
-
-
- repeat with i from 1 to 10
- blah blah blah
- if true then
- blah blah blah blah
- end repeat
-
- ===Eric Gorr================ericg@cs.uoregon.edu===========aka MystryMan===
- _____
- |\ /| * Invincibility is in oneself, vulnerability is in the opponent
- | O | * Therefore the considerations of the intelligent always include both
- |/_\| benefit and harm (Sun Tzu)
-
- #include <standard.disclamer>
- =====Insults, like violence, are the last resort of the incompetent...=====
- =========================================================================
- Date: Wed, 31 Aug 1994 21:00:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Launching Eudora
-
- Hi folks...I just figgered out how to get on this list, as I got tired off
- slogging through those HUGE digests... so excuse me if this has been
- covered.
-
- I use Eudora constantly to download mail while I'm gone, via the Comm.
- Toolbox. When I get home, however, I like to log on to my PPP account, and
- open the "standard" set of PPP apps. I'm writing a simple script to
- automate these things, but I've run into a problem with Eudora -- since the
- settings are configured for the CTB, when Eudora is launched (there's no
- problem if it was already open), it tries to connect via the CTB before I
- have a chance to change the settings to MacTCP, generating an error, and
- bogging everything down.
-
- Now, Eudora will avoid trying to connect on launch in two situations: 1) if
- the "Check every __ minutes" box is set to 0, which I can't do until I
- launch Eudora (too late), and wouldn't want to anyway, and 2) if you hold
- down the Shift key while launching the application (better).
-
- So my question is this: how do I script it such that it thinks it's holding
- down the Shift key when launching Eudora? I haven't found any OSAX that
- seem to allow you to "press [modifier] key" for no apparent reason (though
- Autotype OSAX has this for text).
-
- Help? Is there another way around this?
-
- TIA,
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy --------------------- manifesto overlord, dada typographics
- -------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ---------- WWW page: http://www.digex.net/~spud
- =========================================================================
- Date: Thu, 1 Sep 1994 13:49:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AppleScript control statements
-
- Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
-
- >Does AppleScript have a command that is the equivalent of the "continue"
- >statement in C? It seems like a major thing to leave out.
-
- This may not be the answer you wanted to hear, but have you considered
- looking at the problem closely, to see _why_ you need such a construct?
- I ask because I write tens of thousands of lines of code in another language
- (Modula-2) that also lacks gotos and a "continue" statement, and I can write
- clean, uncontorted code without feeling the need for either.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 31 Aug 1994 19:04:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Is Fetch scriptable (additional comments)
-
- >With regard to my second question, about Anarchie's ability to get
- >a directory listing without saving it to a file, let me add that
- >I'm using Frontier, which doesn't appear to allow the
- >"with window" parameter that AppleScript uses. Why is that?
- >
- Because that feature was added since I wrote the original verb
- table for Anarchie. You could use the Commercial Developer suite to create
- your own table if you wish...
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Wed, 31 Aug 1994 21:51:17 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Alexander <mike.alexander@AOCE.ITD.UMICH.EDU>
- Subject: Re: Is Fetch scriptable (additional comments)
-
- The Frontier glue table for AnArchie is missing a bunch of stuff. If you use
- the Commercial Developer suite in Frontier 3.0.3 to generate a new one from
- the aete resource, it will be more complete and will include the window
- parameter to the list command (among other things). Unfortunately, four
- verbs generate scripts that won't compile without a bit of hand editing.
- List, fetch, nlist, and store all have generated commands that are too long
- and get split at a bad spot. They are easy to fix. The table is also
- missing a "get" verb since AnArchie doesn't claim to support the core suite,
- but adding one is easy (copy one from another table and change the id).
- Given this, the example you gave before works in Frontier (just add
- "window:true" to the "get" call).
-
- Something I didn't figure out is how to get AnArchie to return a
- fileDescriptor object. It claims to support such a thing, and it has an
- "isDirectory" property which I think is what you're looking for, but I can't
- seem to convince it to return such an object specifier.
-
- Mike Alexander
- University of Michigan
-
- ------ From: Macintosh Scripting Systems, Wed, Aug 31, 1994 ------
-
- With regard to my second question, about Anarchie's ability to get
- a directory listing without saving it to a file, let me add that
- I'm using Frontier, which doesn't appear to allow the
- "with window" parameter that AppleScript uses. Why is that?
- =========================================================================
- Date: Wed, 31 Aug 1994 22:57:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul Gerardi <gerardi@RIDGEFIELD.SDR.SLB.COM>
- Subject: Re: Launching Eudora
-
- ...
- >I use Eudora constantly to download mail while I'm gone, via the Comm.
- >Toolbox. When I get home, however, I like to log on to my PPP account, and
- >open the "standard" set of PPP apps. I'm writing a simple script to
- >automate these things, but I've run into a problem with Eudora -- since the
- >settings are configured for the CTB, when Eudora is launched (there's no
- >problem if it was already open), it tries to connect via the CTB before I
- >have a chance to change the settings to MacTCP, generating an error, and
- >bogging everything down.
- >
- >Now, Eudora will avoid trying to connect on launch in two situations: 1) if
- >the "Check every __ minutes" box is set to 0, which I can't do until I
- >launch Eudora (too late), and wouldn't want to anyway, and 2) if you hold
- >down the Shift key while launching the application (better).
- >
- ...
- >
- >Help? Is there another way around this?
- >
- >TIA,
- >spud.
- >
- >
- >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >a.h.s. boy --------------------- manifesto overlord, dada typographics
- >-------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- >spud@access.digex.net ---------- WWW page: http://www.digex.net/~spud
- ==============================================================================
-
- What about having 2 "Eudora Settings" Files in the same place, configured
- the same, except that one is set to use CTB and one TCP/IP.
-
- Depending which of them you double click on, determines how Eudora accesses
- the net for reading mail.
-
- If you're doing things from a script, this makes things easy. Just name
- them something like "Eudora Settings TCP" and "Eudora Settings CTB". The
- script
- can copy one of them to "Eudora Settings", then launch Eudora. Maybe not
- completely elegant, but it works great for me :-)
-
- -Paul
-
-
- =======================================================================
- Paul Gerardi Schlumberger-Doll Research
- Computing Services Old Quarry Road
- Macintosh, Workstations, Networks Ridgefield, CT 06877
- e-mail: gerardi@ridgefield.sdr.slb.com Phone: (203)431-5471
- AppleLink: GERARDI.SDR Fax: (203)438-3819
- =======================================================================
- =========================================================================
- Date: Wed, 31 Aug 1994 22:59:54 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Re: Launching Eudora
-
- >Hi folks...I just figgered out how to get on this list, as I got tired off
- >slogging through those HUGE digests... so excuse me if this has been
- >covered.
- >
- >I use Eudora constantly to download mail while I'm gone, via the Comm.
- >Toolbox. When I get home, however, I like to log on to my PPP account, and
- >open the "standard" set of PPP apps. I'm writing a simple script to
- >automate these things, but I've run into a problem with Eudora -- since the
- >settings are configured for the CTB, when Eudora is launched (there's no
- >problem if it was already open), it tries to connect via the CTB before I
- >have a chance to change the settings to MacTCP, generating an error, and
- >bogging everything down.
- >
- >Now, Eudora will avoid trying to connect on launch in two situations: 1) if
- >the "Check every __ minutes" box is set to 0, which I can't do until I
- >launch Eudora (too late), and wouldn't want to anyway, and 2) if you hold
- >down the Shift key while launching the application (better).
- >
- >So my question is this: how do I script it such that it thinks it's holding
- >down the Shift key when launching Eudora? I haven't found any OSAX that
- >seem to allow you to "press [modifier] key" for no apparent reason (though
- >Autotype OSAX has this for text).
- >
- >Help? Is there another way around this?
- >
-
- You can launch Eudora from 2 different settings files--one set for CTB and
- the other for MacTCP. As long as both are in the same folder as all of
- your mailboxes, everything else will be the same. I do this all the time
- to collect mail from several accounts.
-
- Hope this helps.
-
- --Tom
-